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 constructor chaining and how is it achieved in java?
What is the main use of generics in java?
Are arrays static in java?
What are the 7 types of characters?
What is JDBC Driver interface?How can you retrieve data from the ResultSet
What is the super void?
What is difference between final and finally in java?
How does predicate work in java?
what is the major difference between linkedlist and arraylist in java?
Where to store local variables?
Can vector have duplicates in java?
Is java call by reference?
Why declare Main() method as a static in java ?
What are the main uses of the super keyword?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?