What Method and class used for Connection pooling ?

Answer Posted / therathna

first to get the Context object by using given bellow

Context ic=new InitialContext();

And get DataSource object by using ic.lookup(conncetionpool
name)



your question is not proper way


DataSource Class & getConnection method is used
connection pool

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are meta-annotations?

759


How a variable is stored in memory?

760


Explain tree set and its features?

837


What are different types of references?

777


Why synchronization is important in java?

813


What are the restriction imposed on a static method or a static block of code?

841


What should I import for arraylist in java?

781


Is null an object in java?

811


Can we convert list to set in java?

756


Difference between ‘is-a’ and ‘has-a’ relationship in java?

804


Why parameters should be passed by reference?

734


what are three ways in which a thread can enter the waiting state? : Java thread

801


What is the use of keywords in java?

794


Describe how to implement singleton design pattern in struts.

783


What is the += operator called?

834