Hitachi

Hitachi Application Server V10 Command Reference Guide (For UNIX® Systems)


2.8.11 list-sub-components

Lists EJB or servlet components either in a deployed module or in the module of a deployed application.

Synopsis

asadmin [asadmin-options] list-sub-components [--help]
    [--type type]
    [--appname appname] [--resources]
    modulename

Storage location

Application Server installation directory/javaee/glassfish/bin

Function

The list-sub-components subcommand of asadmin lists the EJB or servlet components in a deployed module or in a module of a deployed application. If a module is not specified, then all the modules are listed. The --appname option functions only when the specified module is stand-alone. This subcommand is supported in remote mode only.

To display a specific module in an application, you must specify the module name with the --appname option.

Precondition

Arguments

--help | -?

Displays the help text for the subcommand.

--type type

Specifies the type of component to be listed. The options are ejbs and servlets. If nothing is specified, then all of the components are listed.

Type: String

The following values can be specified:

  • ejb

  • servlet

Default value: All

--appname appname

Indicates the name of the application.

  • This option is required when the desired output is the subcomponent of an embedded module of a deployed application.

  • The name can include an optional version identifier, which follows the name and is separated from the name by a colon (:). The version identifier must begin with a letter or number. It can contain alphanumeric characters with underscore (_), dash (-), and period (.) characters.

Type: String

The following values can be specified:

  • Name of the application

Default value: N/A

--resources

Lists the application-scoped resources for each subcomponent.

Type: Boolean

The following values can be specified:

  • true

  • false

Default value: false

modulename

Specifies the name of the module containing the subcomponent.

Type: String

The following values can be specified:

  • Name of the module

Default value: N/A

Examples

The following example lists the subcomponents of the MEjbApp application within the mejb.jar module.

asadmin list-sub-components --appname MEjbApp mejb.jar

Exit Status

Exit Status

Explanation

0

subcommand executed successfully.

1

error in executing the subcommand.