admin@glassfish.java.net

Re: how can I get the domain name?

From: Nandini Ektare <Nandini.Ektare_at_Sun.COM>
Date: Thu, 03 Apr 2008 13:23:39 -0700

Claudio,

That will break if your code also runs in the instance VM

Both DAS and instance VMs behave similarly in many respects and to put
it in plain English are "instances" of a server type.
This property changes per "instance" (be it DAS or Server in that domain)
The domain for an instance is fixed and name of that domain is what the
thread initially wanted to find out.

Nandini

Claudio Miranda wrote:
> I have used property com.sun.aas.instanceRoot as it points to
> /opt/glassfish-v3/glassfish/domains/domain1
> Then split it to the desired string
>
> Claudio
>
> On Thu, Apr 3, 2008 at 3:04 PM, Lloyd L Chambers <Lloyd.Chambers_at_sun.com> wrote:
>
>> What if config is:
>>
>> /gf/domains/domain-foo/
>>
>> and the property says "domain1"?
>>
>> Lloyd
>>
>>
>> On Apr 3, 2008, at 11:02 AM, Byron Nevins wrote:
>>
>>
>>> The domain name is in domain.xml -- usually at the very bottom of the file
>>>
>> --
>>
>>> <property value="domain1" name="administrative.domain.name" />
>>> </domain>
>>>
>>>
>>> Lloyd L Chambers wrote:
>>>
>>>
>>>> https://glassfish.dev.java.net/issues/show_bug.cgi?id=4576
>>>>
>>>> How can I get the domain name? (And I hope there is not some weird
>>>>
>> module dependency...)
>>
>>>> I presume that the domain name should be the name of the directory eg
>>>>
>> "domain1".
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>
>