Mikolaj Rydzewski wrote:
Paul Singleton wrote:
I want to deploy the same war into different (5.5)
Services (e.g. "test" and "live"), and want it to
discover where it is and behave differently.

Is there a Tomcat-specific way to do this?
JMX and MBeans come to mind.
Is there a container-independent way of discovering
container-specific info like this?
Check port server listens on?

OK, since Servlet 2.4 there's

  String ServletRequest.getLocalAddr()

which returns the IP address on which
the request was received; this should
enable my web apps to discover whether
they are deployed to our 'test' virtual
server or one of the live ones.

I'd still like to know if there's anything
we can set in a <Service> element which
our web apps can read...

Paul Singleton


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to