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
Who is the owner of java?
What is an empirical question?
What do you understand by soft reference?
What is the inheritance?
Can we have try block without catch block?
What is the use of protected in java?
What is the difference between numeric and integer?
What is threaded programming and when is it used? : Java thread
State the merge-sort principle and its time complexity.
Why singleton class is used in java?
Write a program to print all permutations of string?
Why java is considered dynamic?
what is meant by abstract class?
Define canvas?
How to run a JAR file through command prompt?