admin@glassfish.java.net

how to find if server require restart

From: Anissa Lam <anissa.lam_at_oracle.com>
Date: Sun, 04 Jul 2010 12:34:31 -0700

How does user find out if server require restart ? I mean any server,
including DAS.

'list-domains' gives that info: In the man page, it says

EXAMPLES
      Example 1 Listing Domains
      This example lists the domains in the default directory.
asadmin> list-domains
        Name: domain1 Status: Running
        Name: domain2 Status: Not running
        Name: domain4 Status: Running, restart required to apply
configuration changes
        Command list-domains executed successfully

Should we have 'list-instances' to have RESTART_REQUIRED returned as
one of the status, besides "RUNNING" and "NOT_RUNNING" ?

thanks
Anissa.