dev@glassfish.java.net

Re: asadmin question

From: Bhavanishankar <bshankar_at_sun.com>
Date: Mon, 06 Sep 2010 09:41:48 +0530

Thanks Bill. As long as 'asadmin create-http-listener --help' works even
when the server is down, I got what I wanted.

On 09/06/2010 03:41 AM, Bill Shannon wrote:
> Bhavanishankar wrote on 9/5/10 11:36 AM:
>
>> Suppose if the admin server is NOT running, then 'asadmin create-http-listener'
>> throws Remote server does not listen for requests on [localhost:4848]. Is the
>> server up? (I quickly checked in the v2 installation I have, there 'asadmin
>> create-http-listener' prints the help message for that command though the server
>> is down)
>>
>> Is this a regression in latest builds or it is been by design?
>>
> If by "help message" you mean the usage message (as opposed to the man page
> you get when you do --help), then yes, it's by design.
>
> In v3, the client asadmin command doesn't know anything most commands until
> it contacts the server. The server tells it what the options are for the
> command. If the server is down, it can't get any of this information.
>
> Also, the usage message normally is used to indicate that you specified one
> of the options incorrectly. That doesn't seem like the appropriate message
> when the server is down. If you're literally doing "asadmin
> create-http-listener" with no arguments, then if the server is up it will
> prompt you for the missing arguments. If the server is down, it doesn't
> even know that arguments are missing.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
>