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
What is servlet container. how it works?
Which event is fired at the time of project deployment and undeployment?
What are different Authentication options available in Servlets.
What do you mean by cgi in servlet?
Define declaration.
Which method is called when reference variable is passed in system.net?
How can we upload the file to the server using servlet?
What is the use of java servlet api?
How to get the current httpsession object?
What is api in servlet?
Can we use the constructor, instead of init(), to initialize servlet?
What are the key methods that are involved in processing of http servlets?
What is the use of send redirect () method?
Define servlet mapping?
How to get the actual path of servlet in server?