Re: can a web app discover its Service?

2007-03-21 Thread Paul Singleton
: can a web app discover its Service? 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

Re: can a web app discover its Service?

2007-03-21 Thread Paul Singleton
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

RE: can a web app discover its Service?

2007-03-21 Thread Caldarale, Charles R
From: Paul Singleton [mailto:[EMAIL PROTECTED] Subject: Re: can a web app discover its Service? I've had a closer look at Tomcat Configuration Reference, which says you can set per-Server JNDI variables (GlobalNamingResources), and per-Context ones, but there's no mention of per-Service

Re: can a web app discover its Service?

2007-03-21 Thread Paul Singleton
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, 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? Is

Re: can a web app discover its Service?

2007-03-21 Thread Bob Hall
--- Paul Singleton [EMAIL PROTECTED] 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. I didn't explain *why* we want to do this, because I don't want to spend time debating it with

Re: can a web app discover its Service?

2007-03-21 Thread Paul Singleton
Bob Hall wrote: --- Paul Singleton [EMAIL PROTECTED] 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. I didn't explain *why* we want to do this, because I don't want to spend time

Re: can a web app discover its Service?

2007-03-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, Paul Singleton wrote: For now, I'm using ServletRequest.getLocalAddr() on the first request and inferring deploy mode from that. That seems pretty fragile, although I must admit that I can't immediately think of a way to subvert it. I mean,

RE: can a web app discover its Service?

2007-03-20 Thread Raghupathy, Gurumoorthy
: can a web app discover its Service? 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

Re: can a web app discover its Service?

2007-03-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, 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? Is there a

Re: can a web app discover its Service?

2007-03-20 Thread Mikolaj Rydzewski
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

Re: can a web app discover its Service?

2007-03-20 Thread Leon Rosenberg
On 3/20/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ... I have ant scripts that build everything for me including WAR files for deployment. In my source repo, I have different configuration directories for each of dev, demo, and prod. In fact, I

Re: can a web app discover its Service?

2007-03-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: in fact you can even specify the system type as parameter to the build script, without need to edit it in the properties file: [snip] ant test war - builds the war file for the testsystem, prod war - the production

Re: can a web app discover its Service?

2007-03-20 Thread Paul Singleton
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