What Method and class used for Connection pooling ?

Answer Posted / dsr

contex ic = new InitialContext();
DataSource sd = (datasource)ic.lookup("poolname");
Connection con = ds.getConnection();

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is thread synchronization in java?

572


Write a java program that prints all the values given at command-line.

653


What are the different ways of creating thread?

666


What modifiers are allowed for methods in an interface?

747


What is the current version of java?

640






What is object english?

678


Explain the public class modifier?

605


What is return type in java?

717


What do you mean Abstraction in java?

695


How to check if linked list contains loop in java?

544


What is a void method?

606


what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread

608


What is bifunction in java?

767


What is the role of garbage collector in java?

570


When is update method called?

766