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
How do you find out what client machine is making a request to your servlet
Explain is servlet mapping?
What are the difference between session and cookies in servlet? Explain
What is the advantage of Servlets when compared with other server side technologies?
How many objects of a servlet is created?
Explain the architechure of a servlet?
What is the use of servletconfig interface?
Should I override the service() method?
Explain servlet life cycle?
Why is Servlet so popular?
Why servlet is mostly used?
Describe in brief RequestDespatcher?
What are the important functions of filters?
Why do you use session tracking in httpservlet?
What is the procedure for initializing a servlet?