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

What are the three parts of a lambda expression? What is the type of lambda expression?

977


How would overload a function based on return type?

918


What does yield method of the thread class do?

972


What is scope & storage allocation of static, local and register variables? Explain with an example.

962


Can we use string in switch case in java?

996


Explain the inheritance?

922


What do you mean by stack?

1089


What is difference between module and function?

1082


Explain listiterator and methods in listiterator?

957


What is oop principle in java?

1050


What are basic data types?

1035


Explain the difference between a Thread and a Process.

939


How do you do math powers in java?

1007


What is the purpose of the strictfp keyword?

1109


What is ide with example?

909