Hi Bojan,
The user's guide still has a lot of content that is out of date.
You cite one of the sections that I haven't updated yet.
The reading of server.xml is controlled by ServerXmlReader.java
found in "tomcat/modules/config". See the setBackward() method
at the end of the file for how the old syntax is supported.
The syntax you request is now the standard.
If a module (a.k.a interceptor) has a setter, you can specify
the corresponding property in server.xml. Since PoolTcpConnector
(which Ajp13Interceptor extends) contains setMaxThreads(),
setMaxSpareThreads(), setMinSpareThreads(), etc. the syntax
would be:
<Ajp13Connector maxThreads="50"
maxSpareThreads="10"
minSpareThreads="5"
port="8009"
address="127.0.0.1"/>
I believe it is the following lines in ServerXmlReader.addTagRule()
that makes this possible:
xh.addRule( tag ,
xh.setProperties());
Hope this helps,
Larry
> -----Original Message-----
> From: Bojan Smojver [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 24, 2001 5:31 AM
> To: Tomcat Dev List
> Subject: Thread pool support
>
>
> I've been trying to find in the source if something like this is
> supported:
>
> <Ajp13Connector max_threads="50"
> max_spare_threads="10"
> min_spare_thread="5"
> port="8009"
> address="127.0.0.1"/>
>
> in Tomcat 3.3, rather then <Parameter name=... syntax mentioned in the
> user's guide, but couldn't find where it is. Following syntax from
> server.xml and applying analogously the user's guide example, this
> should be OK, but I couldn't verify in the source.
>
> Can someone point me to the right file?
>
> Bojan
>
> PS. grep -rl 'max.*threads' * in Tomcat source doesn't
> produce anything
> useful.
>