uCosminexus Application Server, Expansion Guide
You can replace a J2EE application while the system is online.
This subsection provides an overview of replacement and describes the replacement procedure.
Replace a J2EE application after the CTM daemon closes the exit of the schedule queue. While the exit is closed, requests from clients can be added to the schedule queue. Therefore, system operation can continue without causing the requests for the relevant application to fail. However, if an attempt is made to add a request to the schedule queue when the schedule queue is full, an error is returned to the relevant client.
The following figure shows an overview of replacing a J2EE application while the system is online.
Figure 3-16 Overview of replacing a J2EE application while the system is online
Before you can replace a J2EE application while the system is online, the exit of the schedule queue for the J2EE application must be closed. To close the exit and replace the J2EE application, use the mngsvrutil management command.
In addition to replacing a specific J2EE application, you can also replace J2EE applications on a host basis or on a management domain basis.
To close the exit of a schedule queue, execute the mngsvrutil command with the hold subcommand specified. While the exit of a schedule queue is closed, requests from clients can be added to the schedule queue. However, if an attempt is made to add a request when the schedule queue is full, an error is returned to the relevant client.
When you have replaced a J2EE application, unlock the schedule queue. To unlock the schedule queue, execute the mngsvrutil command with the release subcommand specified. When the schedule queue is unlocked, the J2EE application restarts processing the queued requests.
The following procedure shows how to replace a J2EE application while the system is online by using CTM.
mngsvrutil -m Management-Server-host-name[:port-number] -u management-user-ID -p management-password -t CTM-name hold queue queue-name out |
mngsvrutil -m Management-Server-host-name[:port-number] -u management-user-ID -p management-password -t CTM-name release queue queue-name |
For details about the mngsvrutil command, see mngsvrutil (Management Server management command) in the uCosminexus Application Server Command Reference Guide.
All Rights Reserved. Copyright (C) 2013, 2015, Hitachi, Ltd.