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)



Why use a datasource when you can directly specify a connection details? (in a J2EE application)..

Answer / 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

More Advanced Java Interview Questions

What is checkpoint? How to create checkpoints in our java projects?

1 Answers   ABC,


Can I map more than one table in a cmp?

0 Answers  


Is it possible to stop the execution of a method before completion in a sessionbean?

0 Answers  


What is servlet preinitialization?

3 Answers   iFlex,


Why use a datasource when you can directly specify a connection details? (in a J2EE application)

1 Answers  


what's the main difference between unix os and linux os?

2 Answers   TCS,


What are the high-level thread states?

1 Answers  


String is immutable.it is true String can be change to mutable How?

6 Answers   IBM, Professional Access, TCS,


What is aop(assepct oriented programing)?

0 Answers  


How a component can be placed on Windows?

0 Answers   Wipro,


What is multi-tasking? Types?

1 Answers  


Name the method to find, if a thread is active or not?

2 Answers  


Categories