What Method and class used for Connection pooling ?
Answer Posted / dsr
contex ic = new InitialContext();
DataSource sd = (datasource)ic.lookup("poolname");
Connection con = ds.getConnection();
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is thread synchronization in java?
Write a java program that prints all the values given at command-line.
What are the different ways of creating thread?
What modifiers are allowed for methods in an interface?
What is the current version of java?
What is object english?
Explain the public class modifier?
What is return type in java?
What do you mean Abstraction in java?
How to check if linked list contains loop in java?
What is a void method?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
What is bifunction in java?
What is the role of garbage collector in java?
When is update method called?