users@glassfish.java.net

Re: Access domain path from java

From: <glassfish_at_javadesktop.org>
Date: Sun, 25 Jul 2010 04:47:28 PDT

Glassfish sets the system property com.sun.aas.instanceRoot to the absolute path of your domain directory.

I'm not sure if your bean is allowed to (1) read the system property and (2) access the local file system, just give it a try...

HTH,
Harald
[Message sent by forum member 'hwellmann']

http://forums.java.net/jive/thread.jspa?messageID=478514