Sun GlassFish Enterprise Server v3 Prelude Add-On Component Development Guide

Specifying the Name of an asadmin Command

To specify the name of the command, set the name element of the @Service annotation to the name.


Note –

Command names are case-sensitive.


Commands that are supplied in Enterprise Server distributions typically create, delete, and list objects of a particular type. For consistency with the names of commands that are supplied in Enterprise Server distributions, follow these conventions when specifying the name of a command:

For example, Enterprise Server provides the following commands for creating, deleting, and listing HTTP listeners:

You must also ensure that the name of your command is unique. To obtain a complete list of the names of all asadmin commands that are installed, use the list-commands(1) command. For a complete list of asadmin commands that are supplied in Enterprise Server distributions, see Sun GlassFish Enterprise Server v3 Prelude Reference Manual.