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

What is Remote Server?

2253


Do I have to use jsps with my application?

1069


What value does read() return when it has reached the end of a file?

1076


Have you used threads in Servelet?

2558


What are various types of class loaders used by jvm?

1041


What are the different algorithms used for clustering?

1130


How would you detect a keypress in a jcombobox?

1187


What is the RMI and Socket?

1097


What do you mean by Socket Programming?

1136


What are the diff types of exception?

1118


What is the immediate superclass of the applet class?

1137


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

3058


Is jvm a overhead?

1162


What you mean by COM and DCOM?

1117


What event results from the clicking of a button?

1314