users@glassfish.java.net

Re: Using embedded GlassFish APIs, how do I get the installation directory?

From: Laird Nelson <ljnelson_at_gmail.com>
Date: Tue, 14 Aug 2012 14:26:45 -0700

On Tue, Aug 14, 2012 at 1:36 PM, Laird Nelson <ljnelson_at_gmail.com> wrote:

> BootstrapProperties.getInstallRoot() returns null. I'm attempting to use
> embedded GlassFish, not an existing GlassFish, and I'm trying to get a
> handle to the directory in which it installs itself.


I see that the proper way to do this is to specify the
glassfish.embedded.tmpdir System property, as documented in the first
message in this forum posting: http://www.java.net/node/699975?force=209

Best,
Laird

-- 
http://about.me/lairdnelson