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
How do we share data using 'getservletcontext ()?
What is the use of servletconfig interface?
How to generate the server side programming and the advantages of it over the other languages?
List some life cycle methods of a servlet.
What do you mean by session tracking?
Explain the jar and war files in servlet?
What is servlet container?
What is servlet api used for conneting database?
What is the difference between forward () and sendredirect () functions in servlet? Explain
If a servlet is not properly initialized, what exception may be thrown?
What is the difference between Server and Container?
What is ServletContext object?
Whether we can get deadlock situation in servlets?
Write the code to get the server information in servlet.
How do cookies work in servlets?