How to make servlet thread safe?

Answer Posted / nagababu

implementing SingleThreadModel. If a Servlet class provides
implementation of SingleThread model interface, the web
container creates multiple objects.

Is This Answer Correct ?    12 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which java application server is the best?

545


Does servlet have main method?

687


List some life cycle methods of a servlet.

587


What is the difference between CGI and Servlet?

586


What is SingleThreadModel interface?

670






How the typical servlet code look like ?

635


Explain the jar and war files in servlet?

553


How to find whether a parameter exists in the request object?

668


Define the servlet mapping.

546


What do you mean by scope object and what are its types?

565


What is servlet configuration?

523


What is the purpose of requestdispatcher interface?

610


Are Servlets Thread Safe? How to achieve thread safety in servlets?

557


What's the architecture of a servlet package?

556


What is the difference in between the httpservlet and generic servlet?

601