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

When should a function throw an exception?

600


What are assembly attributes?

549


What is classname class in java?

536


What is hash code collision?

594


What is the use of default method in interface in java? Explain

553






What is the purpose class.forname method?

560


What is difference between module and function?

542


Which class is the superclass of all classes?

604


What is an immutable object? How do you create one in java?

604


Is java 1.7 the same as java 7?

539


What is multithreading in java?

552


Can we clone singleton object in java?

572


What are the differences between string, stringbuffer and stringbuilder?

529


What is the purpose of an interface?

558


What are methods?

559