Hitachi

uCosminexus Application Server Operation, Monitoring, and Linkage Guide


5.3.12 Canceling the request for which a timeout has occurred

In a J2EE application, cancel the request for which a timeout has occurred. This process is called method cancellation. Execute method cancellation when method cancellation is possible (running, timeout, or failed) after you confirm the thread execution status using the cjlistthread command, according to the contents of 5.3.11 Confirming the execution status of a J2EE application.

For method cancellation, use the server management commands (cjstopthread). You can cancel the methods of multiple threads by executing the command once.

The execution format and example are described below. For details on the cjstopthread command, see cjstopthread (stop threads) in the uCosminexus Application Server Command Reference Guide.

Execution format
cjstopthread J2EE-server-name -tid thread-ID [-tid thread-ID]
Execution example
cjstopthread MyServer -tid 11111

In the thread-ID of the option argument of the -tid option, specify a thread ID output to a message indicating that a timeout occurred, or a message indicating that the thread status is invalid.

Note that when you execute this command, if the method cancellation has already been running, or a thread that is specified as a target of method cancellation does not exist, the method cancellation will not get executed and the command will end successfully. You can confirm the status of the thread after executing the command by using the cjlistthread command. Confirm with the procedures described in 5.3.11 Confirming the execution status of a J2EE application.