How to make servlet thread safe?
Answer Posted / surjit
We can make a servlet thread by implementing the SingleThreadModel interface.
i.e
Public class EmployeeTest extends HttpServlet implement SingleThreadModel{
Service(){
write yor code..........
}
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How do you invoke a servelt?
What are the exceptions thrown by servlets? Why?
What is servlet collaboration?
What is servlet initializer?
What is dispatcher servlet?
Why is http protocol called as a stateless protocol?
Explain the architechure of a servlet?
What’s the difference between sendredirect and forward methods
Why do we have servlet listeners?
What is the difference between the http servlet and generic servlet?
How to get the actual path of servlet in server?
What's the use of servletcontext?
Why is init() method is used in servlets?
What is meant by servlet? What are the parameters of the service method?
What are the life-cycle methods for a servlet?