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 an example of a constant variable?
Can a class have 2 constructors?
What is a dynamic array in java?
What are strings in physics?
What is parsing in grammar?
What is ide with example?
How do you reverse sort a list in java?
What are the main differences between notify and notifyAll in Java?
How do you define a set in java?
How can we make string upper case or lower case?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
Write a java program to check if a number is prime or not?
What is meant by flickering?
What is thread pool? How can we create thread pool in java?
Why chararray() is preferred over string to store the password?