dev@glassfish.java.net

Re: which domain is running?

From: Jerome Dochez <Jerome.Dochez_at_Sun.COM>
Date: Fri, 21 Aug 2009 13:52:52 -0700

On Aug 21, 2009, at 1:48 PM, Bill Shannon wrote:

> Ludovic Champenois wrote on 08/21/09 13:31:
>> On 8/21/09 12:54 PM, Bill Shannon wrote:
>>> I've been thinking about this list-domains bug:
>>> https://glassfish.dev.java.net/issues/show_bug.cgi?id=7581
>>>
>>> If I have two domains, both using the same admin port, how do I
>>> tell which of the domains is running? I need some way to tell
>>> whether
>>> the server I'm talking to corresponds to the domain directory I'm
>>> looking at.
>>>
>> We have the same issue with NetBeans or Eclipse integration where
>> you can register many different domains...(multiple
>> v1,v2,v2.1,v3p,v3 nightlies)
>> The extra info we have there is that the IDEs know the installed
>> location of these local servers, so the trick is to ask the running
>> server its installation directory and then we know which one is
>> running or not with domain location comparison
>> http://localhost:4848/__asadmin/__locations
>> or
>> asadmin __location
>> will give you the install and domain locations IIRC.
>> Hope this helps.
>
> I had to fix asadmin to allow command names starting with "_", but
> after
> that I get no output from the command. It looks like I have to
> process
> the manifest to get the information. Ugh...
>
you can still do .xml or .json right ?

__location.xml or __location.json

jerome

>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>