uCosminexus Application Server, Expansion Guide

[Contents][Index][Back][Next]

7.8.1 Deleting global session information on the EADs server (session information storage destination server)

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.

Organization of this subsection
(1) How to delete global session information
(2) Notes

(1) How to delete global session information

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:

  1. Set the JAR files of the EADs client on the environment variable CLASSPATH.
    When using the cjclearsession command for the first time, specify the path of the JAR files (eads-client.jar, eads-common.jar, and hntrlib2-eads-j.jar) of the EADs client to be used in the environment variable CLASSPATH.
  2. Execute the cjezclearsession command for deleting the global session information
    Specify the J2EE server name, application identifier, and server ID in the cjezclearsession command, and execute the command. When you execute the command, all global session information, which is the global session information related to the Web applications specified in the command argument and global session information possessed by the J2EE servers specified in the command argument, from among the global session information stored in session information a cache on the EADs server, is deleted.
  3. Restart the J2EE server or the Web application if required.

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.

(2) Notes

The notes for deleting global session information are: