aspose file tools
The moose likes Servlets and the fly likes The Single threadModel Interface. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "The Single threadModel Interface." Watch "The Single threadModel Interface." New topic
Author

The Single threadModel Interface.

Rakesh Mehra
Ranch Hand

Joined: Nov 20, 2007
Posts: 31
HOW the below highlighted implemented: :
1. During the lifetime of a servlet that does not implement Single threadModel interface,the container may send multiple service requests in different threads to a single instance
2. Single threadModel follow instance pooling approach to ensure each servlet instance is invoked in a separarte thread. in this approach the container maintains a pool of servlet instance
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

These things are implemented by the builders of servlet containers (Tomcat, Websphere, etc..) not application developers. How they're implemented is really up to the the container builders and can vary from container to container. Luckily, if this is really of interest to you, there are several popular, open source, containers available for you to study.
Tomcat, Resin, and Jetty are the first three that come to mind.

Keep in mind that the SingleThreadModel interface is deprecated so, with the exception of needing to understand it in order to work with legacy code, there isn't much point in studying it.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: The Single threadModel Interface.
 
Similar Threads
Which of the following statements is correct regarding the servlets that implement
Single ThreadModel
How to Interpret SingleThreadModel query( Drop your opinion)?
Servlet models
Single threadmodel