5.4.2 Methods of locking a service and stopping a J2EE application that can be executed for each system
Execute a service lock for an element Front) that is the socket of requests from the client perspective. If you lock the front element, you can continue the execution of the request already received in the J2EE application without reception of new requests from clients.
A Web front system or a back-end system that uses CTM has a load balancer, Web server, or CTM at the front-end of the J2EE application. If you lock an element corresponding to the front of the J2EE application, before directly terminating the J2EE application, you can execute a certain service lock.
Stop the J2EE application to be executed after the service lock with the management command (mngsvrutil):
For system types such as the Web front-end system and back-end system, see 3.1.1 Purpose and configuration of the system in the uCosminexus Application Server System Design Guide.
- Organization of this subsection
(1) Service lock of a Web front system
A Web front system is a system that receives requests sent from a Web browser that is the front-end, and processes those requests.
The target of service lock is a Web application in the J2EE application.
In this system, you can execute a service lock with the methods described in the following table. You can reliably lock a service by executing the service lock with different methods before terminating the J2EE application.
- #
-
You can execute this method for a system using a load balancer.
(2) Service lock of a back-end system (for a system using CTM)
Back-end system is a system for executing common business services in multiple business systems operating at the back of a Web front system.
In the system using CTM, you can execute a service lock for the CTM schedule queue.
In this system, you can execute a service lock with the methods described in the following table. You can reliably lock a service by executing the service lock with different methods before terminating the J2EE application.
(3) Service lock of a back-end system (for a system not using CTM)
For a back-end system without CMT, the target of a service lock is a front Enterprise Bean (Front EJB) of a J2EE application.
You can execute a service lock with the following methods in this system:
Note that when building a system, you need to define the front EJB in advance.