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

Explain the difference between a web server and a web container?

0 Answers  


What is life cycle of Servlet?

0 Answers  


How to read request headers from servlets?

0 Answers  


What is the servletconfig object?

0 Answers  


How do servlets work?

0 Answers  






When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

0 Answers  


What are setSecure() and getSecure() methods in Cookies?

1 Answers  


What is the difference between using getSession(true) and getSession(false) methods?

0 Answers  


how the server will know its the same jsp page?

3 Answers   HCL,


how do you maintain sessions in servlets?

5 Answers   AZTEC, L Cube,


How can you maintain servlet chaining?

1 Answers  


Can you send an authentication error from a servlet?

0 Answers  


Categories