This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SingleThreadModel in a distributed environment

 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Adnan Mahmood
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic