Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Maximum single threaded moldel servlets

James McIntosh

2007-02-21

Replies:

Hi,

I am trying to find out how to limit the number of Single Threaded Model
servlets which get created by the StandardWrapper.

I have looked at the API and there is a setMaxInstances(int) method but
I cannot find anywhere in the config xml files to change it.
I did find the "wrapperClass" attribute for the <Context> element which
allows you to override StandardWrapper with another class which I could
call the setMaxInstances from.

Is there a more elegant way such as:

<web-app>

<servlet>
<servlet-name />
<servlet-class />
<servlet-max-stm-instances />
</servlet>

</web-app>

Kind regards
James McIntosh


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.