Hitachi

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


2.8.5 enable

Enables the component.

Synopsis

asadmin [asadmin-options] enable [--help]
    [--target target] component_name

Storage location

Application Server installation directory/javaee/glassfish/bin

Function

The enable subcommand enables the specified deployed component. If the component is already enabled, then it is re-enabled. If it has not been deployed, then an error message is returned. This subcommand is supported in remote mode only.

Precondition

Domain Administration Server (DAS) is running.

Arguments

--help | -?

Displays the help text for the subcommand.

--target target

Specifies the target on which you are enabling the component.

Type: String

The following values can be specified:

  • server

    Enables the default server instance server and is the default value.

  • domain_name

    Enables the named domain.

  • cluster_name

    Enables every server instance in the cluster.

  • instance_name

    Enables a particular clustered or stand-alone server instance.

Default value: server

component_name

Specifies the name that 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 plus underscore (_), dash (-), and period (.) characters.

Type: String

The following values can be specified:

  • Name of the component to be enabled

Default value: N/A

Examples

The following enables the disabled component, sampleApp on the server instance instance1.

asadmin enable --target instance1 sampleApp

Exit Status

Exit Status

Explanation

0

subcommand executed successfully.

1

error in executing the subcommand.