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
What are the phases of servlet life cycle?
what do you understand by url rewriting?
What is servlet container. how it works?
Why servlet is faster than jsp?
What are the annotations used in servlet 3?
What is http servlet?
What's the advantages using servlets than using cgi?
How can we refresh automatically when new data is entered into the database?
How the servlet is loaded?
How servlets are deployed in java?
What is the default http method in the servlet?
What is the difference between jsp and servlet life cycle?
What do you mean by a filter and how does it work?
What is cgi and what are its drawbacks?
What is the life cycle of a servlet?