uCosminexus Application Server, Expansion Guide
The validity of global session information is monitored in the process of monitoring HTTP sessions on J2EE servers. As a part of monitoring the validity, global session information about HTTP sessions on the EADs server, the validity of which has expired, is deleted. However, if a J2EE server stops due to a failure, the validity of global session information used on that J2EE server is not monitored until a request having the same session ID is received or until you restart the J2EE server. If the state of not monitoring validity continues for a long time, the global session information, which is not deleted even if the validity is elapsed, remains in the cache on the EADs server.
Therefore, you must appropriately delete the global session information remaining on the EADs server.
This subsection describes how to delete global session information by using commands and the points to be considered.
Use the cjezclearsession command for deleting global session information. Execute the command after a J2EE server or a Web application stops, when more time than the validity of the HTTP session has elapsed, and before restarting the J2EE server or the Web application.
In a Web application, if you have set validity for each HTTP session by using servlet API, execute the command in accordance with the longest validity.
The procedures for deleting global session information are as follows:
If you specify the -count option in the cjezclearsession command and execute the command, you can view the count of global session information, which is the global session information related to the Web applications specified in the command argument and the global session information possessed by the J2EE servers specified in the command argument, from among the global session information stored in the session information cache on the EADs server.
If an error occurs when accessing the EADs server while executing the command, cancel the command execution at the point at which the error occurs.
For details on the cjezclearsession command, see cjezclearsession (deleting global session information (the EADs session failover functionality)) in the uCosminexus Application Server Command Reference Guide.
The notes for deleting global session information are:
| No. | Existence status of HTTP session on the J2EE server | Operation |
|---|---|---|
| 1 | Does not exist | You cannot inherit the global session. |
| 2 | Exists | Global session information is not stored in the session information cache on the EADs server and the Web application operates only with the HTTP session on the J2EE server. |
All Rights Reserved. Copyright (C) 2013, 2015, Hitachi, Ltd.