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

Explain the steps in details to load the server object dynamically?

5067


Which class is the immediate superclass of the menucomponent class?

1161


What is the difference between static and non-static with examples?

1872


What is RMI and what are the services in RMI?

1092


What are the different algorithms used for clustering?

1028


whats is mean by tiles in struts

2152


difference between  ejb,struts,hibernate,spring and jsp

2818


Difference between hashmap and hashtable?

1101


What are the call back methods in entity bean?

1018


Which textcomponent method is used to set a textcomponent to the read-only state?

1077


A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions

2197


Explain RMI Architecture?

1047


How messaging services are done, before release of JMS?

2087


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

2177


What are the oops concept?

1022