[jboss-user] [EJB/JBoss] - System.getProperty(

gordonh do-not-reply at jboss.com
Thu Feb 21 17:29:51 EST 2008


I am an experience object-oriented programmer, but havent done alot with JBoss.  I am working on a Java app hosting in JBoss right now that I am having an issue getting certain environment variables.  Consider this line of code:

System.getProperty("jboss.server.home.dir")

Should this not produce the home directory of JBoss "out-of-the-box", or do I need to perform some sort of manual initialization for this setting (ie - look into a file, pull a manually set config value for the dir, then set the property)?

Right now, the code above produces NULL invariably - and I have tried everything to resolve the issue.  My first experience with JBoss hasnt been a good one - LOL.  Hopefully it will get better.

Thanks in advance for your help!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131233#4131233

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131233



More information about the jboss-user mailing list