Book Image

WildFly Configuration, Deployment, and Administration

Book Image

WildFly Configuration, Deployment, and Administration

Overview of this book

Table of Contents (19 chapters)
WildFly Configuration, Deployment, and Administration Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Configuring the Infinispan subsystem


One of the requirements of a cluster is that data is synchronized across its members. This is because, should there be a failure of a node, the application and its session can continue on other members of the cluster. This is known as High Availability.

WildFly uses Infinispan as the distributed caching solution behind its clustering functionality. Although Infinispan is embedded within the application server, it can also be used as a standalone data-grid platform.

We will now quickly look at Infinispan's configuration, which is found in the Infinispan subsystem within the main standalone-ha.xml or domain.xml configuration file.

The following is the backbone of the Infinispan configuration:

<subsystem xmlns="urn:jboss:domain:infinispan:2.0">
    <cache-container name="server" aliases="singleton cluster" default-cache="default" module="org.wildfly.clustering.server">
    <transport lock-timeout="60000"/>
    <replicated-cache name="default...