How to make servlet thread safe?
Answer Posted / monkyspiderpig
The only thing you need to do is to define only static
variables at Class level. When a method is called each
thread gets a new variable.
| Is This Answer Correct ? | 8 Yes | 41 No |
Post New Answer View All Answers
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
What is the difference between Servlets and Applets?
What are the different session tracking techniques?
what do you understand by url rewriting?
How do we go with database connection and log4j integration in servlet?
What are the functions of Servlet container?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
How do I support both get and post from the same servlet?
What is meant by a servlet?
List some life cycle methods of a servlet.
What is http servlet in java?
What are the objects involved when a servlet receives a call from client?
What is httpservlet and how it is different from genericservlet?
What are the steps involved in placing a servlet within a package?
What is the inter-servlet communication?