> From: Pid [mailto:[email protected]]
> Subject: Re: How to get Tomcat IP address during app startup?
> Tomcat listens on whichever IP address is configured
> in your connector. If you don't specify an IP address,
> then it listens on 0.0.0.0.
> The point I'm making is that Tomcat might not know the
> address you want/need.
If the OP is willing to restrict Tomcat to using a single IP address, he could
set that in a Java system property, and then use an attribute like
address=${configured.ip.address} in each <Connector>. The webapp
initialization code could then retrieve the value from the system property, as
Tomcat does. Not terribly elegant, but it might suffice...
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]