tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <cost...@covalent.net>
Subject RE: Tomcat 3.3 and 4.x tuning via command line
Date Fri, 08 Feb 2002 18:23:10 GMT
On Fri, 8 Feb 2002, Craig R. McClanahan wrote:

>     <target name="generate" description="Generate customized server.xml">
>       <replace file="server.xml" token="@port@" value="${port}"
>     </target>
>
>   </project>
>
> In your template server.xml, you'd have a <Connector> element like this:
>
>   <Connector ... port="@port@" .../>
>
> Now, you just run "ant -Dport=8085" and you've replaced the port number.
> Generalizing this to replace lots of properties is straightforward.

Well, it's a bit more complicated - assuming you want to start multiple
tomcat instances, on different ports ( load balancing for example ),
you'll have ant create different files instead of using one which may be
confusing.

Plus ant will add to the startup time ( which is already high ).

Costin


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message