cjezclearsession (Deleting global session information (EADs session failover functionality))
Format
cjezclearsession [-count] server-name application-identifier
{-all|server-ID}
Function
This command deletes the global session information on an EADs server, or displays the global session information count on the EADs server. You can use this command when using the EADs session failover functionality.
Arguments
- -count
- Specify this argument when displaying the global session information count on the EADs server. When you omit this argument, the command deletes the global session information.
- server-name
- This argument specifies the J2EE server name that acquires the EADs client setting information that is required for connecting to the EADs server. You can connect to the EADs server by setting the EADs client, as per the setting contents of the J2EE server user property file (userconf.properties) of the J2EE server specified in this argument.
- application-identifier
- This argument specifies the application identifier of the Web application to be deleted or displayed.
- -all
- Specify this argument to delete or display all the global session information of the target Web application, regardless of the contents of the J2EE server in use.
- server-ID
- This argument specifies the server ID of the J2EE server that has the global session information to be deleted or displayed.
Input example
- For the global session information of the EADs server
cjezclearsession MyServer APPID SERVERID
- When displaying the global session information count on the EADs server
cjezclearsession -count MyServer APPID SERVERID
Return values
- 0:
- The command is terminated normally.
- 1:
- A syntax error occurred.
- 2:
- More than one error occurred.
Notes
- Deletion when the J2EE server that has the HTTP session to be deleted is running
When the J2EE server is running, a request process is sometimes performed and as a result of this new global session information is created. Therefore, when the J2EE server that has the HTTP session to be deleted, is running, the global session might be deleted before the expiry of the validity period. Accordingly, when you want to delete the global session information, first stop the J2EE server that has the HTTP session to be deleted, and then execute the command for deleting the information.
- Deletion before the expiry of validity
When you delete the global session information by executing the cjezclearsession command before the validity period of the global session expires, the following operations are performed:
No. | Existence of the HTTP session on the J2EE server | Operation |
---|
1 | Does not exist | You cannot inherit a global session. |
2 | Exists | The 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. |