Why use a datasource when you can directly specify a
connection details? (in a J2EE application)
Answer / anand
Because, it would be really difficult to specify the connection details in every method that access the database. Instead, if we create a data source, it can be used to connect to the database in every method we want.
Is This Answer Correct ? | 5 Yes | 1 No |
important features of java which differenciate it from c++
Describe activation process?
What is rmic?
Why threads will block on I/O?
Can constructors be synchronized in java?
Which component handles cluster communication in jboss?
What is Remote Interface?
What are the thread-to-thread communcation?
What is the initial state, When a thread is created and started?
Can you give me a simple example of using the requiredif validator rule?
Is 'synchronised' a modifier?
What is the need of serialize?