uCosminexus Application Server, Expansion Guide
When you stop a J2EE application, the system can wait until all requests in the schedule queue are processed. If the J2EE application that you stop is the last of the J2EE applications that share the schedule queue, there might be requests in the schedule queue. If the system waits, these requests will be processed successfully.
This subsection provides an overview of locking and controlling requests for a J2EE application, and describes the procedure for locking a schedule queue.
When the last of the J2EE applications that share a schedule queue stops, the CTM daemon closes the entrance of the schedule queue to perform a service lock so that the queue receives no more requests. After that, the system waits until all requests in the schedule queue are processed, and then stops the J2EE application.
The following figure shows an overview of locking and controlling requests for a J2EE application.
Figure 3-17 Overview of locking and controlling requests for a J2EE application
When CTM executes the locking and controlling of requests for a J2EE application, the following operations take place:
Use the management command to lock schedule queues.
The following shows the format and execution examples of the management command executed when all J2EE applications on a specific host are stopped. For details about the management command, see mngsvrutil (Management Server management command) in the uCosminexus Application Server Command Reference Guide.
mngsvrutil -m Management-Server-host-name[:port-number] -u management-user-ID -p management-password -t host-name -k host hold queues in:request-completion-wait-time-(sec.) |
To unlock schedule queues, execute the mngsvrutil command with the release subcommand specified. The following shows the format and an execution example of the mngsvrutil command.
mngsvrutil -m Management-Server-host-name[:port-number] -u management-user-ID -p management-password -t host-name -k host release queues |
mngsvrutil -m mnghost01 -u user01 -p pw1 -t host01 -k host release queues
All Rights Reserved. Copyright (C) 2013, 2015, Hitachi, Ltd.