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 configure a centralized error handler in servlets?
How would you create deadlock on your servlet?
What is the use of servletconfig interface?
How forward () method is different from send redirect () method?
What are the features added in Servlet 2.5?
What do you mean by session tracking?
What is meant by servlet? What are the parameters of the service method?
How do you find out what client machine is making a request to your servlet
What's the use of servletcontext?
Explain the architechure of a servlet?
What do you mean by the servlet chaining?
What are different Authentication options available in Servlets.
What is the difference between the include() and forward() methods?
If some new data has entered the database, explain how can a servlet refresh automatically?
What are the common methods that are included in the http servlet class?