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 |
Explain the difference between a web server and a web container?
What is life cycle of Servlet?
How to read request headers from servlets?
What is the servletconfig object?
How do servlets work?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
What are setSecure() and getSecure() methods in Cookies?
What is the difference between using getSession(true) and getSession(false) methods?
how the server will know its the same jsp page?
how do you maintain sessions in servlets?
How can you maintain servlet chaining?
Can you send an authentication error from a servlet?