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 state does a thread enter when it terminates its processing? : Java thread
What is advantage of java?
Can we force garbage collector to run ?
What is exception hierarchy in java?
What methods are used to get and set the text label displayed by a button object?
Does sprintf add a null terminator?
Why 1 is not a prime number?
How a string is stored in memory?
How to create com object in Java?
How many types of memory areas are allocated by JVM in java?
how can you catch multiple exceptions in java?
How do you add an element to a set in java?
How can you share data between two thread in Java?
How will you reverse a link list without using recursion?
Can bool be null?