[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss application deployment - Handling properties outsi
jaikiran
do-not-reply at jboss.com
Wed Apr 29 00:49:42 EDT 2009
You can place those property files in %JBOSS_HOME%/server/< serverName>/conf folder which by default is in the classpath. You can then access those files in the code, something along these lines:
InputStream is = this.getClass().getClassLoader().getResourceAsStream("myprops.properties);
| Properties props = new Properties();
| props.load(is);
|
But obviously, you cannot have multiple versions of the same file on the same server instance (that's what i thought your original requirement was - one version per ear on the same server instance).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227437#4227437
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227437
More information about the jboss-user
mailing list