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 |
Explain the stub's and skeleton's functionality?
What is a task?s priority?
what do u mean by java bean??
What is TL and its use?
Explain about thread synchronization inside a monitor?
which type of objects reference will be given to client?
Why use POJO when I can use hashmap
How can a dead thread be restarted?
whats is mean by class.forName() whats the return type of class
What is the form of storage space in java?
why we use main in java?
Can I use multiple html form elements with the same name?