dev@glassfish.java.net

Re: Getting hold of the instance name programatically

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Tue, 16 Nov 2010 11:43:41 -0800

@Inject
private ServerEnvironment env;

env.getInstanceName()


On 11/16/2010 8: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
>

-- 
Byron Nevins  -  Oracle Corporation
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188