> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> Sent: Friday, February 07, 2003 6:02 AM
> Subject: RE: Configuring System properties


> Howdy,
> If you want to go the same route, simply add -Dsearcher.home=... to the
> JAVA_OPTS variable in $CATALINA_HOME/bin/catalina.sh.  It will be
> available via System.getProperty("searcher.home") just like when you
> launch a command-line application.

Perfectly valid and reasonable solution, though it requires folks using your
app to tweak the startup command (most containers allow this).

Another option is to simply set the property yourself in a startup servlet
using System.setProperty(). Then, you can configure it in your web.xml using
a configuration option or a JNDI entry.

This does bring up a simple question:

Do all of the webapps see the same System Properties? 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.

Regards,

Will Hartung
([EMAIL PROTECTED])




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

Reply via email to