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 are the various ways of session supervision in servlets?

0 Answers  


How will you open a new page after certain interval of time (5 sec), on clicking of a button in an html page?

2 Answers  


difference between forward and sendredirect

6 Answers   Accenture,


What is the default HttpRequest method?

6 Answers  


What are the disadvantages of storing session state in cookies?

0 Answers  






What is the use of request dispatcher interface?

0 Answers  


What is difference between cookies and httpsession?

0 Answers  


How do you load an image in a Servlet?

0 Answers  


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

0 Answers  


In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify

0 Answers  


Which is better approach among four(HttpSession,cookie,URL Rewriting, Hidden Fields) Session Tracking technic's ? Why ?

3 Answers   L&T,


What are the phases of a servlet life cycle?

0 Answers  


Categories