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
Define the remote object implementation?
Which are the different segments of memory?
How would you detect a keypress in a jcombobox?
whats is mean by tiles in struts
What state does a thread enter when it terminates its processing?
What modifiers may be used with an inner class that is a member of an outer class?
What is the difference between ear, jar and war file?
what are the advantages of JTA over JTS?
What are various types of class loaders used by jvm?
Can I map more than one table in a cmp?
What are the steps to write p-to-p model application?
Which container method is used to cause a container to be laid out and redisplayed?
Which javutil classes and interfaces support event handling?
What are the different types of exception?
Is infobus easy to use?