[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: how to qualify java properties with jboss server instanc

PeterJ do-not-reply at jboss.com
Fri Oct 19 11:32:19 EDT 2007


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"));




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097033#4097033

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097033



More information about the jboss-user mailing list