File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes SingleThreadModel in a distributed environment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "SingleThreadModel in a distributed environment" Watch "SingleThreadModel in a distributed environment" New topic
Author

SingleThreadModel in a distributed environment

Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
Can someone explain the implications of running a SingleThreadModel servlet in a distributed environment. For instance, might the container maintain a pool of servlet instances in each VM that the application is distributed across.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Adnan Mahmood
Greenhorn

Joined: Sep 04, 2003
Posts: 2
When a Servlet implements SingleThreadModel interface, the container is required to use an object of a servlet to serve a single request at a time. To serve multiple requests, container can maintain a pool of servlet objects, each instance serving a single request. But maintaining a pool of servlet objects is not a specification requirement and depends on the container only.
Same restriction apply in the case of distributed environment. A servlet instance can serve only one request at a time.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SingleThreadModel in a distributed environment