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 is the difference between stringbuffer and stringbuilder?

779


How do you sort a string in java?

738


Explain about automatic type conversion in java?

834


Do you know why doesn't the java library use a randomized version of quicksort?

757


Is singleton thread safe in java?

753


Which sort is best in java?

748


What do you mean by append?

741


Why is java not 100% pure oops?

829


what do you mean by marker interface in java?

773


What is pojo class in java?

735


What is getclass () getname () in java?

898


What is parseint?

734


What is the return type of the main method?

809


I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?

811


Explain importance of finally block in java?

817