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
Difference between doget and dopost?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
What are the life cycle methods of a servlet?
Why is Servlet so popular?
What is called Scriptlet?
How we can get ip address of client in servlet?
how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file
Why do we have servlet listeners?
Why filter is used in servlet?
Is it possible to have a constructor inside the servlet?
Explain jsessionid and when is it created?
How to read request headers from servlets?
What is cgi and what are its drawbacks?
What is the use of servletconfig interface?
Which are the different ways you can communicate between servlets?