Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

what is an isolation level?

0 Answers  


What are transaction attributes?

0 Answers  


Explain what is orm?

0 Answers  


Are there books about seam?

0 Answers  


What are the disadvantages of using threads?

3 Answers   Oracle, SFS,


What are the oops concept?

0 Answers  


What is daemon thread?

3 Answers  


what is the use of State Factories?

0 Answers  


diff between jsp include directive and jsp action include?

4 Answers   SolutionNET,


whats is mean by jndi

1 Answers   SolutionNET,


When a thread terminates its processing, it enters into what state?

1 Answers  


Describe activation process?

0 Answers  


Categories