uCosminexus Application Server, Expansion Guide
Validity of global session information is monitored by monitoring HTTP sessions on a J2EE server. As a part of monitoring validity, the global session information on the database is deleted for HTTP sessions for which the validity of has expired. However, if a J2EE server stops due to a failure, the global session information used on that server is inherited on another J2EE server or the validity is not monitored until you restart the J2EE server. If the state of not monitoring the validity continues for a long time, the global session information, which is not deleted even if validity has elapsed, continues using records in the session information storage table.
Therefore, you must appropriately delete the global session information remaining in the database.
The following subsection describes how to delete global session information by using a command:
Use the cjclearsession command for deleting the global session information. Execute the command before restarting a J2EE server or a Web application after the J2EE server or a Web application stops, and time exceeding the validity of the HTTP session has elapsed.
In a Web application, if you have set validity for each HTTP session by using Sevlet API, execute the command in accordance with longest validity.
The following are the procedures for deleting global session information:
If you specify the -count option in the cjclearsession command and execute the command, you can view the number of global session information possessed by the J2EE server.
The timeout for connection tries to database and execution timeout of SQL that acquires or deletes the global session information of database is eight seconds.
If an error occurs during database access while executing the command, stop the command execution at the point at which the error occurred.
For details on the cjclearsession command, see cjclearsession (deleting global session information (the database session failover functionality)) in the uCosminexus Application Server Command Reference Guide.
Notes for deleting global session information:
| Sr. No. | Integrity mode | Existence status of HTTP session on the J2EE server | Operation |
|---|---|---|---|
| 1 | Disables | None | You cannot inherit the global session. |
| 2 | Yes | Thereafter, the deleted global session information is not stored in the database and a Web application operates only with the HTTP session on the J2EE server. |
All Rights Reserved. Copyright (C) 2013, 2015, Hitachi, Ltd.