Larry Isaacs wrote: > > 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, Yep, it does. Thanks. Patch for the UG is attached. Bojan
--- /home/groups/devel/jakarta/jakarta-tomcat/src/doc/tomcat-ug.html Sat Aug 18 11:25:01 2001 +++ tomcat-ug.html Fri Aug 24 23:13:26 2001 @@ -1313,24 +1313,14 @@ <td bgcolor="#c0c0c0"> <pre> <!-- (1) HTTP Connector for stand-alone operation --> - <Connector className="org.apache.tomcat.service.SimpleTcpConnector"> - <Parameter - name="handler" - value="org.apache.tomcat.service.http.HttpConnectionHandler"/> - <Parameter - name="port" - value="8080"/> - </Connector> + <Http10Connector port="8080" + address="127.0.0.1" + /> <!-- (2) AJPV12 Connector for out-of-process operation --> - <Connector className="org.apache.tomcat.service.SimpleTcpConnector"> - <Parameter - name="handler" - value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/> - <Parameter - name="port" - value="8007"/> - </Connector> + <Ajp12Connector port="8007" + address="127.0.0.1" + /> </pre> </td> </tr> @@ -1417,14 +1407,9 @@ <td bgcolor="#c0c0c0"> <pre><!-- A pooled AJPV12 Connector for out-of-process operation --> - <Connector className="org.apache.tomcat.service.PoolTcpConnector"> - <Parameter - name="handler" - value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/> - <Parameter - name="port" - value="8007"/> - </Connector> + <Ajp12Connector port="8007" + address="127.0.0.1" + /> </pre> </td> </tr> @@ -1454,23 +1439,13 @@ <td bgcolor="#c0c0c0"> <pre> <!-- A pooled AJPV12 Connector for out-of-process operation --> - <Connector className="org.apache.tomcat.service.PoolTcpConnector"> - <Parameter - name="handler" - value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/> - <Parameter - name="port" - value="8007"/> - <Parameter - name="max_threads" - value="30"/> - <Parameter - name="max_spare_threads" - value="20"/> - <Parameter - name="min_spare_threads" - value="5" /> - </Connector> + <Ajp12Connector tomcatAuthentication="false" + port="8007" + address="127.0.0.1" + maxThreads="30" + maxSpareThreads="20" + minSpareThreads="5" + /> </pre> </td> </tr>