Hitachi

uCosminexus Application Server Command Reference Guide


7.3.5 stop

This subcommand stops the specified logical servers, J2EE application, or J2EE resources.

The following table shows the arguments that can be specified for the stop subcommand.

Table 7‒6: Arguments that can be specified for the stop subcommand

Argument

Explanation

Target specification

Logical server

Host

allServers

Stops the logical servers defined in the management domain in reverse order from the defined starting order.

--

--

server [graceful[:waitTime]]

Stops the logical server specified by the -t option.

When graceful is specified, planned termination is executed.

Y

Y

app displayName [force]

Stops the J2EE application specified by displayName that has been started on the logical server specified by the -t option.#

When force is specified, the application is stopped forcibly.

Y

--

resAdapter displayName

Stops the J2EE resource adapter specified by displayName that has been started on the logical server specified by the -t option.#

Y

--

resJavaBeans displayName

Stops the JavaBeans resource specified by displayName that has been started on the logical server specified by the -t option.#

Y

--

Legend:

Y: Can be specified.

--: Cannot be specified.

#

displayName indicates the display name of a J2EE application, J2EE resource, or JavaBeans resource.

You can use the stop subcommand to execute the following two types of operations:

Notes
  • If execution of the start or stop subcommand is immediately followed by a similar operation on the same logical server, specify the -s option in the subcommand so that the subsequent command is executed after completion of the subcommand.

  • If the list subcommand is specified, the status existing when the subcommand is invoked is reflected in the information that the command returns, regardless of the execution states of other subcommands (such as start and stop). Therefore, the command might return the status working before the processing of the start subcommand is completed or the status stopped before the processing of the stop subcommand is completed.

  • Of the logical servers to be stopped, the ones placed in abnormal ended status are assumed to have already been stopped. Attempts are not made to retry the subcommand to stop these logical servers. In 09-70 and earlier versions, however, attempts are made to retry the subcommand. In this case, when stop processing is performed for a logical server abnormal ended status, the subcommand waits until the maximum monitoring time expires and then terminates with the return value 1. The maximum monitoring time is specified in the -l option and its default value is 60 seconds.

  • If you want to stop the logical CTM server that is set in the CTM to which a logical J2EE server is connected, stop the logical J2EE server first. After you confirm that the processing to stop the logical J2EE server is complete, stop the logical CTM server. If you attempt to stop the logical CTM server before the processing to stop the logical J2EE server is complete, the attempt might fail. You can check whether the processing to stop the logical J2EE server is complete from whether the J2EE server process (cjstartsv) has stopped.