This content has been marked as final.
Show 1 reply
-
1. Re: How to write files into the root context
qmbriggs Apr 24, 2006 10:39 AM (in response to tophermiller)You can get the server root path from the System properties in this manner:
String homePath=System.getProperty("jboss.server.home.dir");
There is a list of system properties set by JBoss in the documentation at this page:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossProperties
Be aware that the Java SecurityManager may prevent you from reading and writing System properties, in which case you have to grant yourself those priviledges.