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 the difference between the session.get() method and the session.load() method?

1087


whats is statement and procedure

2213


What are the difference between RMI and CORBA?

1116


What is the relationship between the canvas class and the graphics class?

1044


What is threadfactory?

1100


Which are the different segments of memory?

1083


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

1241


What is the form of storage space in java?

2250


What is the purpose of the notify() method?

1077


Explain what is synchronization?

1099


difference between  ejb,struts,hibernate,spring and jsp

2874


What are the design considerations while making a choice between using interface and abstract class?

1097


What is the difference between the string and stringbuffer classes?

1103


What are the different algorithms used for clustering?

1071


Define aop(assepct oriented programing)?

1182