i need connection pooling code.....from
harpreet.your@gmail.com

Answer Posted / nagababu

ic--->Reference of Context
DataSource ds=(DataSource)ic.lookUp("JNDI name");
Connection con=ds.getConnection();
con.close();

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a servlet-to-servlet communcation?

644


How do you load an image in a Servlet?

654


Differentiate between the web server and application server?

555


How to get the current httpsession object?

649


What's the difference between authentication and authorization?

546






Difference between GET and POST?

705


How can we perform any action at the time of deploying the project?

619


What do you mean by cgi in servlet?

627


How to get the IP address of client in servlet?

623


How can the session in servlet be destroyed?

637


Explain the servlet filter.

538


How do you deal property files in servlet?

598


How do we go with database connection and log4j integration in servlet?

698


What is the difference between jsp and servlet life cycle?

683


What is string tokenizer?

622