aspose file tools*
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 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 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