This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes SingleThreadModel instances queue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "SingleThreadModel instances queue" Watch "SingleThreadModel instances queue" New topic
Author

SingleThreadModel instances queue

Guennadiy VANIN
Ranch Hand

Joined: Aug 30, 2001
Posts: 898
If servlet implements SingleThreadModel, then it makes "the web server queuing requests and start another instance of the servlet to service the demand".
How it would be possible to determine existence of multiple instances in order to implement additional logic for this case?
How many instances will be created? Is it possible to control?
Is it possible to check the queue?
Ian Darwin
author
Ranch Hand

Joined: Aug 03, 2001
Posts: 64
The implementation of multiple instances of a SingleThreaded servlet is highly container-specific, both in terms of how it's implemented and in terms of how many will be run. Most servers have a GUI or Web-based tool that will give you some control over the numbers.


Ian Darwin
Many questions are answered in my Java Cookbook, 2nd Edition
Guennadiy VANIN
Ranch Hand

Joined: Aug 30, 2001
Posts: 898
Thanks, Ian.
Is it a role of developer or of the system administrator?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SingleThreadModel instances queue
 
Similar Threads
SingleThreadModel ??
Question regarding SingleThreadModel
Instances of a Servlet
SingleThreadModel - WebSphere - servlet instance pool size
Number of Instances Per Servlet