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
What is a finally block? Is there a case when finally will not execute?
What is jit compiler ?
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
Whats the difference between notify() and notifyall()?
How do you delete a list in java?
Tell me about different OOPS concepts.
What do you understand by a Static Variable?
Is a class an object?
What is the purpose of using break in each case of switch statement?
What does the “final” keyword mean in front of a variable? A method? A class?
Why is logger singleton?
What is an infinite loop in java? Explain with an example.
What is the static keyword?
When can you say a graph to be a tree?
What are the ways in which a thread can enter the waiting state?