For tomcat you can define JAVA_OPTS system variable to supply
additional parameters for the java machine. That includes the
possibility to define -Dyour.property=

See the comments at the begin of catalina.bat or catalina.sh.
You can either modify catalina.bat/.sh or whatever bat file that is
used to start tomcat.

If you running Tomcat as a service (under Windows), the JVM options
are specified through the configuration dialog (on the Java tab of
it).

If you running Tomcat from an IDE, there are IDE-specific ways to
customize launching configuration and supply those options to java.


Of course, these settings are global for the tomcat instance. There
does not exist any way to specify different system property values for
different web applications.


Other tricks include modifying/updating system properties values on
the fly. As far as SecurityManager allows you to do that (IMHO, it
should not).


Best regards,
K.

2007/11/14, Kaj Kandler <[EMAIL PROTECTED]>:
> Hi there,
> I do have a library, that uses a property to determine some
> configuration. As a straight Java program I would call
>
> java -dmy.property=/my/value ...
>
> How can I set this property in the context of a tomcat webapp, like in
> the web.xml or context.xml?
>
> Thanks for the help
>
> K
> --

---------------------------------------------------------------------
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