dev@glassfish.java.net

Re: which domain is running?

From: Jerome Dochez <Jerome.Dochez_at_Sun.COM>
Date: Fri, 21 Aug 2009 14:22:38 -0700

On Aug 21, 2009, at 2:08 PM, Ludovic Champenois wrote:

> On 8/21/09 1:52 PM, Jerome Dochez wrote:
>>
>> 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 "_",
> We use it via
> http://localhost:4848/__asadmin/__locations(.xml html or json)
> (which all work)
> I see the asadmin cli does not work any more...
you mean for this command I suppose.

I think that's the right thing, the command is meant to be used for
administrative purpose and not officially supported. If we need to
support it, we should rename it "locations". Bill, I suppose you just
need to invoke this from the list-domains implementation so using
__location should not be issue, right ?

another way is to make the command private by using another context
root like we do for private commands we had to add for JSR88
implementation. These commands are available through HTTP but not
using the CLI framework.

jerome

> Ludo
>
>
>>> 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
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>