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
Explain the steps in details to load the server object dynamically?
Which class is the immediate superclass of the menucomponent class?
What is the difference between static and non-static with examples?
What is RMI and what are the services in RMI?
What are the different algorithms used for clustering?
whats is mean by tiles in struts
difference between ejb,struts,hibernate,spring and jsp
Difference between hashmap and hashtable?
What are the call back methods in entity bean?
Which textcomponent method is used to set a textcomponent to the read-only state?
A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions
Explain RMI Architecture?
How messaging services are done, before release of JMS?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
What are the oops concept?