tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: Configuring System properties
Date Fri, 07 Feb 2003 18:34:43 GMT

On Fri, 7 Feb 2003, Will Hartung wrote:

> Do all of the webapps see the same System Properties?

Yes, if they're running in the same JVM.

> I can't imagine why
> not (assuming they share a JVM), but with all  of the isolation that's
> enforced between the webapps, it gives one pause to consider.

That's why system properties are not a very good approach to configuring
per-webapp behavior.  However, they are convenient in standalone apps.

An example approach that works pretty well for webapps and for standalone
apps sharing the same code is to use a graduated search mechanism for
configuration info -- like what the commons-logging package does in
looking for logging configuration:  look for a local properties file with
a well known name, look for a JAR file that has the right file in its
META-INF directory, look at a system property, fall back to a default.

> Regards,
> Will Hartung
> (


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message