This content has been marked as final.
Show 4 replies
-
1. Re: How to get the value of a Server Start Variable?
peterj Jun 2, 2005 3:03 PM (in response to hms)Go to the wiki search page, enter "server home url" into the search text box. Go to the first page in the results.
(Yeah, I could have put the URL into this message, but the point is that this -- and many other questions -- are already answered in the wiki and that should be the first place you look.) -
2. Re: How to get the value of a Server Start Variable?
hms Jun 2, 2005 4:02 PM (in response to hms)I know, but, how to use it in my java code?
jboss.server.home.url ?
$jboss.server.home.url ?
${jboss.server.home.url }?
or ServerConfig.SERVER_HOME_URL ?
Sorry, I am really new to JBoss.
Thanks -
3. Re: How to get the value of a Server Start Variable?
peterj Jun 2, 2005 4:33 PM (in response to hms)The names given in the wiki are system property names, you get their values like you would any other system property:
String path = System.getProperty("jboss.server.home.url");
-
4. Re: How to get the value of a Server Start Variable?
hms Jun 2, 2005 5:09 PM (in response to hms)Hi, Peter,
Thanks a lot!!