This content has been marked as final.
Show 2 replies
-
1. Re: read a local properties file
peterj Jul 1, 2008 10:59 AM (in response to gan.gary)Here is one possible way of doing this.
Place the properties (or data) file into server/xxx/data. (I placed mine in a subdirectory such as server/xxx/data/mystuff)
In your program, use the jboss.server.data.dir property to get the path for the data directory, and use that to access the properties file. For example:
String dataDir = System.getProperty("jboss.server.data.dir");
Properties prop = Properties.load(new FileInputStream(dataDir + "/mystuff/my.properties")); -
2. Re: read a local properties file
gan.gary Jul 1, 2008 9:48 PM (in response to gan.gary)great, thanks!