This content has been marked as final.
Show 5 replies
-
1. Re: how to qualify java properties with jboss server instanc
peterj Oct 19, 2007 11:32 AM (in response to jesso1607)You could access the properties file using one of the system properties that identifies jboss directories. For example, if the properties file is at server/xxx/config/app.properties, you can access it as follows:
String configDir = System.getProperties("jboss.server/config.url"); Properties prop = new Properties(); prop.load(new FileInputStream(configDir + "app.properties"));
-
2. Re: how to qualify java properties with jboss server instanc
jesso1607 Oct 19, 2007 1:54 PM (in response to jesso1607)I also think these libraries can be in a Tomcat server as well. Sorry I forgot to say that.
The above would only work in JBoss? -
3. Re: how to qualify java properties with jboss server instanc
peterj Oct 19, 2007 3:53 PM (in response to jesso1607)The jboss.server.config.url property is only available when running JBoss AS. It is not available in standalone Tomcat.
I suggest you define your own system property for the location of the properties file and pass it in on the JVM command line. -
4. Re: how to qualify java properties with jboss server instanc
jesso1607 Oct 22, 2007 8:10 AM (in response to jesso1607)"PeterJ" wrote:
The jboss.server.config.url property is only available when running JBoss AS. It is not available in standalone Tomcat.
I suggest you define your own system property for the location of the properties file and pass it in on the JVM command line.
How do I do that for multiple servers in jboss? -
5. Re: how to qualify java properties with jboss server instanc
peterj Oct 22, 2007 11:46 AM (in response to jesso1607)Here is one way. Create a run script for each app server. In each run script, set JAVA_OPTS=-Dmy.sys.prop=valueforthisappserver, and then call the default run script.