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



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

Answer / 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

More Servlets Interview Questions

what do you understand by url rewriting?

0 Answers  


What are the phases of the servlet life cycle?

0 Answers  


What is meant by Servlet? What are the parameters of service method?

0 Answers  


What are the functions of Servlet container?

0 Answers  


If some new data has entered the database, explain how can a servlet refresh automatically?

0 Answers   BirlaSoft,


Explain the methods of request dispatcher in servlet?

0 Answers  


What is servlet and its life cycle?

0 Answers  


What is the workflow of a servlet?

0 Answers  


How to pass session values from one servlet container to another servlet container? or how can we get session values of one container in another container?

6 Answers   IBM, Infosys, TCS,


How two servlets communicate with each other?

2 Answers  


which method in doGet or doPost is use to send binary date to server

2 Answers   HCL,


Name the packages that work with servlet?

0 Answers  


Categories