[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Properties File

Renen do-not-reply at jboss.com
Tue Sep 11 06:56:27 EDT 2007


Just to follow that up. The following code will open a property file and read a property:


  | String confFile = System.getProperty("jboss.server.config.url") + confFilename;
  | System.out.println("Will look for configuration settings in: " + confFile);
  | URL url = new URL(confFile);
  | defaultProperties = new Properties();
  | defaultProperties.load(url.openStream());
  | queryTIMEOUT = Integer.parseInt(defaultProperties.getProperty("QueryTimeout", Integer.toString(defaultQueryTIMEOUT) ));
  | 

Hope somebody finds this useful.

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

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



More information about the jboss-user mailing list