Why use a datasource when you can directly specify a
connection details? (in a J2EE application)



Why use a datasource when you can directly specify a connection details? (in a J2EE application)..

Answer / 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

More Advanced Java Interview Questions

How to do registration form using struts and hibernate?

1 Answers  


What are the different algorithms used for clustering?

0 Answers  


What is the map interface?

0 Answers  


what are the software's needed to develop advanced java 3 tier application project

1 Answers  


What is the difference between RMI registry and OS Agent?

0 Answers  


Define aop(assepct oriented programing)?

0 Answers  


What is resource bundle?

1 Answers  


Difference between DurableSubscription and non- DurableSubscription?

0 Answers  


What is a modular application?

0 Answers  


what is the diffrence between banking and insurance domain?

2 Answers  


What are the pros and cons of detached objects?

0 Answers  


whats is mean by tiles in struts

0 Answers   SolutionNET,


Categories