You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by vi...@yahoo.co.in on 2013/05/27 12:36:45 UTC
Parameterized the server.xml
Team,
Is there a way by which we can pass the tomcat port numbers via config file or command line.i don't want to hardcode the port numbers in server.xml.please suggest how to do it
Thanks,
Vicky
Sent from my iPhone
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Parameterized the server.xml
Posted by vi...@yahoo.co.in.
Thanks a ton Kolinko for your help..it works
Thanks,
Vicky
On May 27, 2013, at 6:52 PM, Konstantin Kolinko <kn...@gmail.com> wrote:
> 2013/5/27 <vi...@yahoo.co.in>:
>> Team,
>>
>> Is there a way by which we can pass the tomcat port numbers via config file or command line.i don't want to hardcode the port numbers in server.xml.please suggest how to do it
>
>
> Yes.
> If "foo" is a system property, you can use "${foo}" in any XML file
> parsed by Tomcat.
> Explained here:
> http://tomcat.apache.org/tomcat-7.0-doc/config/index.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Parameterized the server.xml
Posted by Konstantin Kolinko <kn...@gmail.com>.
2013/5/27 <vi...@yahoo.co.in>:
> Team,
>
> Is there a way by which we can pass the tomcat port numbers via config file or command line.i don't want to hardcode the port numbers in server.xml.please suggest how to do it
>
Yes.
If "foo" is a system property, you can use "${foo}" in any XML file
parsed by Tomcat.
Explained here:
http://tomcat.apache.org/tomcat-7.0-doc/config/index.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org