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
Why the container loads server at the application startup and how?
What is war file?
Which exception is thrown if the servlet is not initialized properly?
What is Client-Server Computing?
How does tomcat servlet container work?
Explain the jar and war files in servlet?
What are the different session tracking techniques?
What is a web application and what is it’s directory structure?
What is servlet mapping?
Which protocol will be used by browser and servlet to communicate
Which httpsession object is used to view and manipulate information about a session?
What is setattribute in servlet?
What is session tracking?
How to get the current httpsession object?
What is the procedure for initializing a servlet?