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 Remote Server?
Do I have to use jsps with my application?
What value does read() return when it has reached the end of a file?
Have you used threads in Servelet?
What are various types of class loaders used by jvm?
What are the different algorithms used for clustering?
How would you detect a keypress in a jcombobox?
What is the RMI and Socket?
What do you mean by Socket Programming?
What are the diff types of exception?
What is the immediate superclass of the applet class?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
Is jvm a overhead?
What you mean by COM and DCOM?
What event results from the clicking of a button?