This is what I originally did, and it works fine if you have just one copy of
the app running. What I need to do, though, is run two copies of the app, each
one with a slightly different config, but system environment properties apply to
all apps running within an instance of orion. I need a per-app config, like what
would be provided in orion-application.xml or orion-web.xml, only I can't find a
way to do this.
Tony Wilson <[EMAIL PROTECTED]> on 01/04/2001 17:47:43
Please respond to Orion-Interest <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
cc: (bcc: Ari Halberstadt/Lycos)
Subject: RE: how to set environment properties for an app?
To do this, we pass in environment variables on the command line to the call
to java that starts orion using the -D option
So
java -Dconfig=OUR.CONFIG.STRING -jar /opt/orion/orion.jar
You can then access them using
String configKey = System.getProperty("config");
Hope that helped.
Tony Wilson
- how to set environment properties for an app? Ari Halberstadt
- RE: how to set environment properties for an app? Tony Wilson
- RE: how to set environment properties for an app? Ari Halberstadt
- RE: how to set environment properties for an app? Tony Wilson
- RE: how to set environment properties for an app? Ari Halberstadt
