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
Is string passed by reference in java?
Difference between overriding and overloading in java?
What do you mean Abstraction in java?
What is the final variable?
What does the @override annotation do?
What are passing parameters?
How do you define a singleton class?
Which programming language is most secure?
what is daemon thread and which method is used to create the daemon thread? : Java thread
What happens if we override only equals?
What is the purpose of an interface?
What are format specifiers in java?
If two threads have same priority which thread will be executed first ?
What do you mean by jjs in java8?
How much ram can a 64 bit processor theoretically?