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)

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


Please Help Members By Posting Answers For Below Questions

Define the remote object implementation?

2399


Which are the different segments of memory?

1019


How would you detect a keypress in a jcombobox?

1085


whats is mean by tiles in struts

2135


What state does a thread enter when it terminates its processing?

1016


What modifiers may be used with an inner class that is a member of an outer class?

1002


What is the difference between ear, jar and war file?

1062


what are the advantages of JTA over JTS?

2143


What are various types of class loaders used by jvm?

929


Can I map more than one table in a cmp?

1029


What are the steps to write p-to-p model application?

2431


Which container method is used to cause a container to be laid out and redisplayed?

1090


Which javutil classes and interfaces support event handling?

994


What are the different types of exception?

983


Is infobus easy to use?

987