Rose Kad [
http://community.jboss.org/people/rkadupuk] created the discussion
"how to load property file outside of the webapplication in Jboss server?"
To view the discussion, visit:
http://community.jboss.org/message/542728#542728
--------------------------------------------------------------
I created a property file and placed it inside a jar file and changed the classpath of the
jboss server. (opened run.bat and set CLASSPATH variable)
I could able to see the updated classpath when I do run --help at command prompt.
the JBOSS CLASSPATH contains:jboss_home\bin\run.jar;custom_jar_home\serverconfig.jar
From my web application I did like this.
ClassLoader.+getSystemClassLoader+().getResource("serverconfig.properties").getPath()
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/542728#542728]
Start a new discussion in Beginner's Corner at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]