users@glassfish.java.net

Re: asadmin in v3

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Tue, 14 Oct 2008 13:01:42 -0700

Kedar Mhaswade wrote:
> Almost all of the command logic was implemented on the server in V2 as
> well.
> I am not sure anything has semantically changed between V2 and v3 as far
> as that is concerned. If the server was not running, in both V2 and v3,
> the command fails with a reasonably similar error -- server is not running
> in v3 and connection could not be established in V2.
>
> As far as "users" of GlassFish are concerned, they must not notice any
> change in GlassFish behavior of asadmin "remote" commands.

Apart from the parsing logic/command usage that is now handled at the
server and not at the client (unlike V2).

This is probably incompatible because to find the usage text in V2, server
need not be running, whereas in v3 you do need it. But this is inevitable
with current design, as Jerome suggested.

Note however that the command "add-resources" in original question should
behave the same way if the options/operands are provided correctly.

-Kedar

> -Kedar
>
>
> Jerome Dochez wrote:
>> I think Manish meant that the sever must be running for the commands
>> to be executed.
>>
>> yes there is a good reason for this change, most commands are
>> implemented on the server side as glassfish dynamic nature allows for
>> very different installations to have very different capabilities
>> (different set of commands), yet you would want to keep the same
>> asadmin client to talk to all of them.
>>
>> Jerome
>>
>> Kedar Mhaswade wrote:
>>> That's not right. Although most of the internals have changed,
>>> nothing has
>>> changed as far as asadmin "interface" is concerned. add-resources
>>> could be run
>>> in V2 only with running domain. So is the case with v3 Prelude.
>>>
>>> asadmin and all its commands are "public interface" of GlassFish. We
>>> could not
>>> change it in an incompatible manner even if we had other (strong)
>>> reasons to
>>> do so.
>>>
>>> If you think there is indeed an incompatibility, please let us know
>>> because
>>> v3 Prelude is not 100% compatible with V2 and we know it.
>>>
>>> -Kedar
>>>
>>> Manish Gupta wrote:
>>>> It seems that Glassfish should be running to execute most of the
>>>> asadmin commands like add-resources in v3...it is not a case with v2.
>>>> Any reason for this change in v3??
>>>>
>>>> Manish.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>