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 |
Are Servlets Thread Safe? How to achieve thread safety in servlets?
Differentiate between the print writer and servlet output stream?
i am bca student,give me suggest for bright future
18 Answers BSNL, Future Considerations,
What is the life cycle of a servlet?
What is the major difference between servlet and applet?
What is new in ServletRequest interface ? (Servlet 2.4)
My Question is that i am using <image> tag in my servlet and after compilation after that calling by url in my browser then images are not showing. Sometime images are showing and sometime is not showing. I am using Tomcat to run my servlets. Tell me if there any specification for image in servlets or what is solution for this ??
What is the use of attribute in servlets?
What do you mean by singlethreadmodel interface?
List out the difference between ServletConfig and ServletContext?
What are the types of Session Tracking ?
What are the different mode that servlets can be used?