Sun GlassFish Enterprise Server v3 Add-On Component Development Guide

Specifying the Name of an asadmin Subcommand

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


Note –

Subcommand names are case-sensitive.


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

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

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