The FirstCluster cluster must be configured to use HADB and high-availability must be enabled for the clusterjsp application before you can verify HTTP session persistence.
From the machine on which the Domain Administration Server is running, configure FirstCluster to use HADB using this command:
asadmin configure-ha-cluster --hosts hadb-hostname,hadb-hostname --devicesize 256 FirstCluster
Replace the hadb-hostname variable with the host name of the machine where HADB is to run. If you are using just one machine, you must name it twice.
This simplified example runs two nodes of HADB on the same machine. In production settings, use more than one machine.
To reduce the memory footprint of HADB for demonstration purposes, execute the following hadbm command. You are prompted for the administration password.
In Java Enterprise System installations:
/opt/SUNWhadb/4/bin/hadbm set DataBufferPoolSize=64,LogBufferSize=25 FirstCluster
In standalone Application Server installations:
install-dir/hadb/4/bin/hadbm set DataBufferPoolSize=64,LogBufferSize=25 FirstCluster
Configure the clusterjsp application for HTTP session persistence by enabling high availability: