admin@glassfish.java.net

Re: Dev Tests News

From: Bill Shannon <bill.shannon_at_oracle.com>
Date: Sun, 03 Apr 2011 20:36:42 -0700

Tom Mueller wrote on 04/03/2011 01:28 PM:
> I haven't looked into this in detail, but AFAIK, the reason for the first
> request is so that the asadmin in command is able to prompt for the missing
> arguments. The argument parsing is actually done by asadmin not the server.
We're talked about caching the metadata for commands. I don't think it's too
difficult, but I also don't think it's real important right now.

> If we sent the complete command line that the user entered, and the entire
> password file to the server, then it could process the complete command with
> only one round trip in the typical case. If there are arguments missing, then
> the server would need to return a code that would indicate that asadmin needs
> to prompt for more information.
>
That would be a significantly more complex implementation.