admin@glassfish.java.net

Re: Following glassfish issue that impacts IIOP getting ports from domain.xml was categorized for m4

From: Byron Nevins <byron.nevins_at_gmail.com>
Date: Wed, 07 Jul 2010 00:31:16 -0700

On 7/6/2010 3:56 PM, Ken wrote:
> Tom Mueller wrote:
>> Once you have a Server s, call s.getCluster() which returns a
>> Cluster, or null if the instance is not clustered.
>>
>>
> How to I figure out which Server instance in Servers corresponds to my
> instance?
You inject the server which is stored in the habitat with a special
name. I don't have code in front of me but it's something like

@Inject(name=ServerEnvironment.DEFAULT_SERVER_NAME) //
Server me;


>
> Also, I need to know the host name of the server. In my test, the
> attribute node-agent-ref
> was set to the host name. Can I rely on node-agent-ref to always be
> the host name?
No. node-agent-ref is going away. don't use it at all. You should use
"node"
>
> Thanks,
>
> Ken.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>