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
> ([EMAIL PROTECTED])
>

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to