Red Hat Training

A Red Hat training course is available for Red Hat JBoss Enterprise Application Platform

13.6. Switching to Distributed Cache Mode for Web Session Replication

Change the web cache-container for Infinispan subsystem to dist from repl. The owners attribute defines the number of cluster nodes that will hold the session data. One of them is called primary owner, and the others are backup owners.
Following is the CLI command to update the cache mode to dist with three owners assuming an ha profile is being used:
Running the above CLI will yield the following output:
<cache-container name="web" aliases="standard-session-cache" default-cache="dist" module="">
  	<transport lock-timeout="60000"/>
  	<distributed-cache name="dist" owners="3" l1-lifespan="0" mode="ASYNC" batching="true">