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
Can we get PrintWriter and ServletOutputStream both in a servlet?
Explain jsessionid?
What are the common methods that are included in the http servlet class?
What is the purpose of requestdispatcher interface?
What are the mechanisms used by a servlet container for maintaining session information?
What methods do you use in servlet - applet communication?
What is the difference in between the httpservlet and generic servlet?
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 >>
Explain the difference between jsp and servlet?
Define servlet mapping?
What are the types of servlets? Explain
What is a web application and what is it’s directory structure?
What are the drawbacks of cgi?
Explain the features are in servlet 3?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?