Infinispan and the cluster
A starting configuration of Infinispan can be found in the standalone-ha.xml
descriptor file of WildFly. Here's how Infinispan is configured to replicate the web sessions seen in Chapter 15,Sharing the Web Sessions:
<cache-container name="web" default-cache="dist" module="org.wildfly.clustering.web.infinispan"> <transport lock-timeout="60000"/> <distributed-cache name="dist" mode="ASYNC" l1-lifespan="0" owners="2"> <locking isolation="REPEATABLE_READ"/> <transaction mode="BATCH"/> <file-store/> </distributed-cache> <distributed-cache name="concurrent" mode="SYNC" l1-lifespan="0" owners="2"> <file-store/> </distributed-cache> </cache-container>
Infinispan, in addition to working internally to the container, can also be run in standalone with the same configuration. A module is a set of classes with particular features. Each module is represented by the name of the...