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

difference between HashMap, Hashset and hashTable?

2 Answers   HCL, Infotech,


what is a dirty read?

1 Answers  


Is there a guarantee of uniqueness for entity beans?

0 Answers  


what is the Scope of Final Keyword in Java?

1 Answers   HCL,


What class is used to create Server side object ?

0 Answers  


can a static method be overridden

41 Answers   IBM, SolutionNET,


What is the difference between session and entity beans?

0 Answers  


1) Scenario: I developed my application on local system and everything is perfect and tested. Now on UAT this application is deployed on clustered server environment. They are logical or physically clustered. But application is not working over there. &#61656; What is the issue with application? &#61656; What are the first things which come in your mind?

1 Answers   L&T,


What are different types of layout managers in java.awt package?

3 Answers   Android, CA,


What are local interfaces? Describe.

0 Answers  


To what value is a variable of the string type automatically initialized?

0 Answers  


What is the difference between the session.get() method and the session.load() method?

0 Answers  


Categories