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
How does system arraycopy work in java?
How many bits is a double?
How you can force the garbage collection?
Can we execute a program without main?
Is oracle java 11 free?
Name few java 8 annotations ?
Can sleep() method causes another thread to sleep?
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.
What are the differences between getting and load method?
Explain the importance of throws keyword in java?
What is this () in java?
What is string in java? String is a data type?
What is java reflection?
What is a default constraint?
What are the Class Libraries ?