This content has been marked as final.
Show 5 replies
-
1. Re: Finding
jaikiran Oct 16, 2006 6:36 AM (in response to mrh)Finding "jboss.home.dir" server variable in a jsp file?
System.getProperty("jboss.home.dir");
-
2. Re: Finding
mrh Oct 17, 2006 2:51 AM (in response to mrh)"jaikiran" wrote:
Finding "jboss.home.dir" server variable in a jsp file?
System.getProperty("jboss.home.dir");
Hi Jaikiran
The variable JBOSS_HOME, is not a system variable, it is used only in jbossAS. It is my problem.
I can set it as a system variable but this isn't a good solution. for example, I don't have sufficient permission on my hosting sercver. Is there any servlet method for obtaining jboss server variable, shuch as ASP server object?
thanks. -
3. Re: Finding
jaikiran Oct 17, 2006 8:17 AM (in response to mrh)The variable JBOSS_HOME, is not a system variable, it is used only in jbossAS. It is my problem.
I can set it as a system variable but this isn't a good solution.
JBoss while starting up, sets this variable(or some other variables) using System.setProperty() API. So you should be able to obtain the value using the System.getProperty() API mentioned in the earlier post. Give it a try from a JSP/Servlet. -
4. Re: Finding
jaikiran Oct 17, 2006 8:18 AM (in response to mrh)"jaikiran" wrote:
JBoss while starting up, sets this variable(or some other variables)
I meant,JBoss while starting up, sets this variable(and some other variables)
-
5. Re: Finding
mrh Nov 19, 2006 3:07 AM (in response to mrh)I must using application.getRealPath().
Thanks