Use this command to edit the session replication properties. The properties that you can edit are as follows:
key - The secret key that members of the cluster use to authenticate each other. Only applicable at the cluster level.
encrypted - Indicates whether the session data is encrypted prior to replication. The default value is false. Only applicable at the cluster level.
protocol - The protocol used for session replication. The values can be http or jrmp. Only applicable at the cluster level.
async - Indicates whether session replication is allowed to occur asynchronously from HTTP request and response processing. The default value is true. Only applicable at the cluster level.
getAttribute-triggers-replication - Indicates whether a call to the HttpSession.getAttribute method should cause a session to be backed up. The default value is true. Only applicable at the cluster level.
replica-discovery-max-hops - The maximum number of instances that should be contacted while attempting to find the backup of a session. The range of values is 1–2147483647, or -1 for no limit. Only applicable at the cluster level.
startup-discovery-timeout - The maximum time (in seconds) that an instance will spend trying to contact its designated backup instance. The range of values is 0.001–3600. Only applicable at the cluster level.
cookie-name - The name of the cookie that tracks which instance owns a session. Only applicable at the cluster level.
For connect_options description, see help(1).
Specify this option to print this command on the standard output before executing. Also, prints the default value for all the non-mandatory options that you have not provided in the command.
If you specify this option, wadm will not prompt you for passwords while executing this command. Use this option if you have defined all passwords in a password file and specified the file using the --password-file connect_option.
Specify this option to display a verbose output.
Specify the name of the node.
Specify the name of the configuration.
Specify the name and value of the session replication property that you want to edit.
wadm set-session-replication-prop --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 enabled=true
The following exit values are returned:
command executed successfully
error in executing the command