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
Is string is a class in java?
What is a condition in programming?
how we can make a write-only class in java?
What is a for loop in java?
Can java program run without jre?
Can we declare an interface as final?
What is the driver class?
What’s the difference between the methods sleep() and wait()?
What is classname class in java?
can java object be locked down for exclusive use by a given thread? : Java thread
Can you explain the final method modifier?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
How do you define a method?
Can we overload the constructors?
What is a Transient Object?