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 is a parser. What does a parser do with a XML? Why do we need it?

1 Answers  


Write a program to show the functionality of doget and dopost method?

0 Answers  


What is the use of servlet wrapper classes?

0 Answers  


Can we get PrintWriter and ServletOutputStream both in a servlet?

0 Answers  


In servlets, Why do we need both GET and POST method implementations?

3 Answers   IBM,






If you want to modify the servlet,will the Webserver need to be ShutDown ?

9 Answers  


Which event is fired at the time of setting, getting or removing attribute from application scope?

0 Answers  


What are the differences between forward() method and sendredirect() methods?

0 Answers  


What is servlet invoker?

0 Answers  


can servlet have instance variables?

8 Answers   Syscon, Wipro,


What is MIME Type?

0 Answers  


i have 500 jsp in my application ,with same forward name,it lokks for appropritae jsp from 1 to 500,but i want to send response to 498 page,what should i do

2 Answers   Caritor, Globerian,


Categories