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 |
What is checkpoint? How to create checkpoints in our java projects?
Can I map more than one table in a cmp?
Is it possible to stop the execution of a method before completion in a sessionbean?
What is servlet preinitialization?
Why use a datasource when you can directly specify a connection details? (in a J2EE application)
what's the main difference between unix os and linux os?
What are the high-level thread states?
String is immutable.it is true String can be change to mutable How?
6 Answers IBM, Professional Access, TCS,
What is aop(assepct oriented programing)?
How a component can be placed on Windows?
What is multi-tasking? Types?
Name the method to find, if a thread is active or not?