This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes SingleThreadModel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "SingleThreadModel " Watch "SingleThreadModel " New topic
Author

SingleThreadModel

Adnan Ahmed
Greenhorn

Joined: Aug 18, 2003
Posts: 17
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.
my question is that all the container support the pool of servlet objects behaviour and how can we define this pool in container.


SCJP1.2 <br />SCWCD1.4
Engin Okucu
Ranch Hand

Joined: Feb 09, 2002
Posts: 174
Unfortunately, all not servlet container support it.
Adnan Ahmed
Greenhorn

Joined: Aug 18, 2003
Posts: 17
Engin its okie that all the containers not support pool of servlet instances.
i want to know that if a container support it then whether we will be configured the container or container automatically provide it.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

i want to know that if a container support it then whether we will be configured the container or container automatically provide it.

Yes, Weblogic provides the ability to configure the pool size.


Groovy
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: SingleThreadModel
 
Similar Threads
java - single thread model
How to Interpret SingleThreadModel query( Drop your opinion)?
one instance per servlet or pooled instances
SingleThreadModel in a distributed environment
SingleThreadModel