Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet Container ...

 
venkatesh rajmendram
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can a servlet container maintain a pool of servlet instances (same servlet) ?...I guess it can but how can it be done ? do we need to specify something in the deployment descriptor ?
Any help is appreciated...
Thanks
Venkatesh
[ January 09, 2004: Message edited by: venkatesh rajmendram ]
 
Vijay S. Rathore
Ranch Hand
Posts: 449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At any point in time the servelet container has only one instance of servlet.
There is no question of servlet pool arises here.
 
venkatesh rajmendram
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...
As a matter of fact you can have many instances of same servlet at same time in servlet container. You have to specify the same servlet multiple times in the deployment descriptor...web.xml
- Venkatesh
[ January 09, 2004: Message edited by: venkatesh rajmendram ]
 
Jacky Chow
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Vijay S Rathore:
At any point in time the servelet container has only one instance of servlet.
There is no question of servlet pool arises here.

hi Vijay,
You may search the word "pool" in Servlet spec, you will see that a container is allowed to use a pool of servlet instances to improve the performace!
Venkatesh, the implementation of servlet instance pool is specific to container, containers may maintain a pool for servlet, but it is not required, some containers may allow you to maintain the pool by setting, but some may not allowed, you must read the container's documentation to get the information about this!
 
Vijay S. Rathore
Ranch Hand
Posts: 449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jacky Chow for the information
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic