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...

What Method and class used for Connection pooling ?

Answer Posted / deepak divvela

InitialContext ctx=new InitialContext();
Obj obj=ctx.lookup("jmdi provided alias name here");
javax.sql.DataSource ds=(javax.sql.DataSource)obj;
Connection con=ds.getConnection();

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is string is a class in java?

952


What is a condition in programming?

1007


how we can make a write-only class in java?

1020


What is a for loop in java?

1037


Can java program run without jre?

1006


Can we declare an interface as final?

1055


What is the driver class?

1038


What’s the difference between the methods sleep() and wait()?

1008


What is classname class in java?

1054


can java object be locked down for exclusive use by a given thread? : Java thread

1089


Can you explain the final method modifier?

1008


How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?

1432


How do you define a method?

974


Can we overload the constructors?

988


What is a Transient Object?

1078