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 called servlet container?
What are the mechanisms used by a servlet container for maintaining session information?
Why do you use session tracking in httpservlet?
What exactly are the functions of servlet?
What’s the difference between sendredirect and forward methods
How to get the IP address of client in servlet?
What are the kinds of http requests?
How to find whether a parameter exists in the request object?
How can the referrer and the target urls be used in servlet?
How can a servlet be used to generate plain text instead of html?
Can we fetch the attributes related to a servlet on a different servlet?
What does the term localization refer to?
What are the phases of a servlet life cycle?
What is the directory structure of web application?
Explain the custom jsp tags and the beans.