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 the difference between superclass and subclass?

531


Is empty set an element of empty set?

589


What does void * mean?

521


What is a jit compiler?

623


Why we used vector class?

617






What is try-with-resources in java?

596


What is static data type in java?

525


What is a consumer in java?

552


What is a numeric string?

554


what is a green thread? : Java thread

561


In java, what is the difference between method overloading and method overriding?

570


Is it possible to write a regular expression to check if string is a number?

528


What is unicode full form?

538


What is the main use of generics in java?

498


What is java object name?

540