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
Who is responsible for writing a constructor?
What are the type of protocols used in httpservlet?
What is Servlets and explain the advantages of Servlet life cycle?
how many jsp scripting elements are there and what are those?
What is the capacity the doget can send to the server?
Is tomcat a servlet container?
What's the architecture of a servlet package?
What exactly are the functions of servlet?
Explain get and post.
What is called Session Tracking?
Can we use threads in Servlets?
How can the session in servlet be destroyed?
What is the difference between 2 types of servlets?
What do you mean by request dispatcher in servlet?
What are the exceptions thrown by servlets? Why?