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 the difference between JDK and JVM?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
What is the difference between synchronized and synchronized block?
What is void data type?
What is math floor in java?
What all access modifiers are allowed for top class ?
What are advantages and disadvantages of OOPs?
is there a separate stack for each thread in java? : Java thread
What is boolean query?
Are static members inherited to sub classes?
When do we use synchronized methods in java?
How can the checkbox class be used to create a radio button?
What is the use of System class?
What happens if constructor is private?