dev@glassfish.java.net

Re: Getting hold of the instance name programatically

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Tue, 16 Nov 2010 11:26:17 -0600

  This might not be reliable, but the com.sun.aas.instanceRoot system
property has the path to the directory for the instance. So the last
component of that path is the instance name, if you are on an instance
rather than a DAS. If its the DAS, then the last component is the name
of the domain.

Tom

On 11/16/2010 10:58 AM, Prasad Subramanian wrote:
> This may sound like a basic question.
>
> Is there a way I can get hold of the instance name programatically
> within the GlassFish code without having to inject the Habitat ?
>
> Thanks
> Prasad
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>