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

Is string passed by reference in java?

652


Difference between overriding and overloading in java?

700


What do you mean Abstraction in java?

695


What is the final variable?

753


What does the @override annotation do?

644






What are passing parameters?

680


How do you define a singleton class?

612


Which programming language is most secure?

632


what is daemon thread and which method is used to create the daemon thread? : Java thread

628


What happens if we override only equals?

657


What is the purpose of an interface?

647


What are format specifiers in java?

706


If two threads have same priority which thread will be executed first ?

971


What do you mean by jjs in java8?

641


How much ram can a 64 bit processor theoretically?

555