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 aop(assepct oriented programing)?

1054


why static class in java

1771


Is “abc” a primitive value?

1109


How database connectivity in XML is achieved?

2240


Why are some of the class and element names counter-intuitive?

1142


What is mdb and what is the special feature of that?

1055


What is bean? Where can it be used?

1163


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

1082


Is there a guarantee of uniqueness for entity beans?

1004


What if the static modifier is removed from the signature of the main method?

1238


Name the eight primitive java types.

1124


How to deploy Jar, War files in J2EE?

2691


what is meant by JRMP?

2349


hi friends, i have done my BE(CSE)at 2011 then i have joined one company before they asked me 50k so i paid but now they telling no project here so we r going to close like that so now i need any job i have good knowledge in core java and j2ee(jsp,servlet,jdbc) so if u know any job pl help me

2219


Difference between hashmap and hashtable?

1156