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

Who is the owner of java?

1005


What is an empirical question?

968


What do you understand by soft reference?

1057


What is the inheritance?

975


Can we have try block without catch block?

1031


What is the use of protected in java?

1027


What is the difference between numeric and integer?

1010


What is threaded programming and when is it used? : Java thread

1070


State the merge-sort principle and its time complexity.

980


Why singleton class is used in java?

1140


Write a program to print all permutations of string?

1119


Why java is considered dynamic?

1178


what is meant by abstract class?

1128


Define canvas?

986


How to run a JAR file through command prompt?

1281