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
Can we refresh servlet in client and server side automatically?
What's the difference between authentication and authorization?
What is the difference between the include() and forward() methods?
What is the dispatcher servlet?
What is setattribute in servlet?
What are the key methods that are involved in processing of http servlets?
How can I send user authentication information while making URL Connection?
What do you mean by chaining in servlet?
Explain mvc pattern.
What is the GenericServlet class?
When to use doget() and when dopost()?
explain the advantages of servlet life cycle?
What are different ways for servlet authentication?
If a servlet is not properly initialized, what exception may be thrown?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?