uCosminexus Application Server, Operation, Monitoring, and Linkage Guide
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.
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.
Table 5-19 Service lock that can be executed in a Web front system
Service lock methods | Description | Measure | Reference |
---|---|---|---|
Change the request distribution destination of a load balancer | Changes the settings of a load balancer such that no request is distributed to a J2EE server in which the J2EE application is to be terminated. As a result, the J2EE server cannot receive any request. | Functions of load balancer | 5.4.3 |
Stop the load balancer# | Stops a load balancer and stops the transfer of any request to J2EE server. As a result, the J2EE server cannot receive any request. | Functions of load balancer | 5.4.3 |
Terminate a J2EE application normally | If you normally terminate a J2EE application, that J2EE application cannot receive any new request. However, termination is not complete until the running process finishes. | Server management commands | 5.5.7 |
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.
Table 5-20 Service lock that can be executed in a back-end system (when CTM is used)
Service lock methods | Description | Measure | Reference manual | Section |
---|---|---|---|---|
Execute a service lock using the CTM functionality | The schedule queue will be locked using the CTM functionality, and forwarding of the requests to the J2EE server will be stopped. As a result, the J2EE server cannot receive any request. | Management commands | Expansion Guide | 3.7.4 |
Terminate a J2EE application normally | If you normally terminate a J2EE application, that J2EE application cannot receive any new request. However, termination is not complete until the running process finishes. | Server management commands | This manual | 5.5.7 |
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:
Table 5-21 Service lock that can be executed in a back-end system (when CTM is not used)
Service lock methods | Description | Measure | Reference |
---|---|---|---|
Terminate a J2EE application normally | If you normally terminate a J2EE application, that J2EE application cannot receive any new request. However, termination is not complete until the running process finishes. | Server management commands | 5.5.7 |
Note that when building a system, you need to define the front EJB in advance.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.