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 event results from the clicking of a button?
What are the different approaches to represent an inheritance hierarchy?
how to use debug in my elipse to solve problems that exist in my project
What is a class loader?
What class is used to create Server side object ?
Define the remote object implementation?
Why use POJO when I can use hashmap
how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.
Difference between DurableSubscription and non- DurableSubscription?
Is the session factory thread safe?
Why use a datasource when you can directly specify a connection details?
Can we sent objects using Sockets?
Do I have to use jsps with my application?
whats is mean by tiles in struts
What are the different types of exception?