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


Please Help Members By Posting Answers For Below Questions

Can we get PrintWriter and ServletOutputStream both in a servlet?

659


Explain jsessionid?

619


What are the common methods that are included in the http servlet class?

579


What is the purpose of requestdispatcher interface?

616


What are the mechanisms used by a servlet container for maintaining session information?

568






What methods do you use in servlet - applet communication?

584


What is the difference in between the httpservlet and generic servlet?

607


I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>

2533


Explain the difference between jsp and servlet?

592


Define servlet mapping?

660


What are the types of servlets? Explain

676


What is a web application and what is it’s directory structure?

585


What are the drawbacks of cgi?

571


Explain the features are in servlet 3?

603


What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

543