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 is an example of a constant variable?

1026


Can a class have 2 constructors?

858


What is a dynamic array in java?

1120


What are strings in physics?

972


What is parsing in grammar?

985


What is ide with example?

924


How do you reverse sort a list in java?

903


What are the main differences between notify and notifyAll in Java?

1048


How do you define a set in java?

958


How can we make string upper case or lower case?

1034


If system.exit (0); is written at the end of the try block, will the finally block still execute?

1049


Write a java program to check if a number is prime or not?

1003


What is meant by flickering?

1037


What is thread pool? How can we create thread pool in java?

1023


Why chararray() is preferred over string to store the password?

976