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 are the three parts of a lambda expression? What is the type of lambda expression?
How would overload a function based on return type?
What does yield method of the thread class do?
What is scope & storage allocation of static, local and register variables? Explain with an example.
Can we use string in switch case in java?
Explain the inheritance?
What do you mean by stack?
What is difference between module and function?
Explain listiterator and methods in listiterator?
What is oop principle in java?
What are basic data types?
Explain the difference between a Thread and a Process.
How do you do math powers in java?
What is the purpose of the strictfp keyword?
What is ide with example?