This content has been marked as final.
Show 2 replies
-
1. How to deploy properties for application outside the EAR file?
t3chris Apr 15, 2011 5:20 AM (in response to t3chris)I've found one possible way:
The file can be placed in jboss\server\default\conf\ and then loaded by using
URL configFileURL = Thread.currentThread().getContextClassLoader().getResource(<CONFIG_FILENAME>);
from within the application.
-
2. How to deploy properties for application outside the EAR file?
peterj Apr 15, 2011 11:21 AM (in response to t3chris)The server/xxx/conf directory is in the classpath so using ClassLoader.getRource() is a good way to access configuration files in that directory.
Alternately, you can get the server/xxx/conf location via the jboss.server.conf.url system property, and then us a File object to access the file.