[jboss-user] [Beginner's Corner] - how to load property file outside of the webapplication in Jboss server?
Rose Kad
do-not-reply at jboss.com
Wed May 12 17:51:10 EDT 2010
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&containerType=14&container=2075]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100512/423e3916/attachment-0001.html
More information about the jboss-user
mailing list