2012/2/16 Pradeep Fernando <pradee...@gmail.com>:
> I want to start multiple tomcat server instances by giving a port
> offset kind of parameter. I dont want to hard code the port. A
> port.offset system property would be ideal.
>
> say my default port is 8080. with port.offset param  set to  '1'. it
> would be 8081.
>
> 8080 + ${port.offset}
>
> Is there any mechanism to fulfill my requirement. ?

You can use properties substritution.
E.g.  create $CATALINA_BASE/bin/setenv.sh:
[[[
JAVA_OPTS=-Dmyportnumber=8083
]]]
and use port="${myportnumber}" in server.xml

It is up to you how to calculate the port number.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to