users@glassfish.java.net

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

From: Laird Nelson <ljnelson_at_gmail.com>
Date: Tue, 14 Aug 2012 13:36:40 -0700

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.

If I specify the install root in the BootstrapProperties, then it appears
that the embedded GlassFish APIs look to that (empty) directory as though
it contained a preconfigured GlassFish installation. That's not what I
want.

Instead, I want the directory that embedded GlassFish installs itself into.

It appears (correctly and rationally) to be a temp directory by default.
 I'm not sure what portion of embedded GlassFish is responsible for
deciding where to locate itself, or whether I can influence that in any way.

Thanks,
Laird

-- 
http://about.me/lairdnelson