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