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 are the types of scaling?
Explain the advantages and disadvantages of detached objects.
In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?
Which class is the immediate superclass of the menucomponent class?
What is a clone?
What do you know about seam?
Define aop(assepct oriented programing)?
What is TL and its use?
What event results from the clicking of a button?
How to determine SGA site?
What is local interface. How values will be passed?
What is the difference between a menuitem and a checkboxmenuitem?
Why do I get a duplicate name error when loading a jar file?
What are the services in RMI ?
When a thread blocks on i/o?