Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SingleThreadModel

 
Adnan Ahmed
Greenhorn
Posts: 17
  • 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.
my question is that all the container support the pool of servlet objects behaviour and how can we define this pool in container.
 
Engin Okucu
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately, all not servlet container support it.
 
Adnan Ahmed
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic