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

How does system arraycopy work in java?

880


How many bits is a double?

785


How you can force the garbage collection?

773


Can we execute a program without main?

789


Is oracle java 11 free?

736


Name few java 8 annotations ?

821


Can sleep() method causes another thread to sleep?

815


we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.

1838


What are the differences between getting and load method?

791


Explain the importance of throws keyword in java?

798


What is this () in java?

787


What is string in java? String is a data type?

804


What is java reflection?

790


What is a default constraint?

850


What are the Class Libraries ?

830