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
What is aop(assepct oriented programing)?
why static class in java
Is “abc” a primitive value?
How database connectivity in XML is achieved?
Why are some of the class and element names counter-intuitive?
What is mdb and what is the special feature of that?
What is bean? Where can it be used?
What value does readline() return when it has reached the end of a file?
Is there a guarantee of uniqueness for entity beans?
What if the static modifier is removed from the signature of the main method?
Name the eight primitive java types.
How to deploy Jar, War files in J2EE?
what is meant by JRMP?
hi friends, i have done my BE(CSE)at 2011 then i have joined one company before they asked me 50k so i paid but now they telling no project here so we r going to close like that so now i need any job i have good knowledge in core java and j2ee(jsp,servlet,jdbc) so if u know any job pl help me
Difference between hashmap and hashtable?