Why use a datasource when you can directly specify a
connection details? (in a J2EE application)
Answer Posted / 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 |
Post New Answer View All Answers
How would you create a button with rounded edges?
What is colon_pkg_prefixes and what is its use?
What is difference between object state and behavior?
When a thread blocks on i/o?
What is the relation between the infobus and rmi?
what is meant by JRMP?
What is the purpose of the notify() method?
Do you think that java should have had pointers?
What is a modular application? What does module-relative mean?
When a thread blocks on i/o, what state does it enter?
In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?
Why are some of the class and element names counter-intuitive?
What is table mutation and how do you avoid it?
What is bean? Where can it be used?
Explain ioc concept?