Show Table of Contents
7.3. Configure Replication Mode
Replication mode is a clustered cache mode in Red Hat JBoss Data Grid. Replication mode can be added to any cache container, in both Library Mode and Remote Client-Server Mode, using the following procedure.
Procedure 7.1. The replicated-cache Element
<cache-container name="clustered"
default-cache="default"
statistics="true">
<!-- Additional configuration information here -->
<replicated-cache name="default"
mode="SYNC"
start="EAGER"
statistics="true">
<!-- Additional configuration information here -->
</replicated-cache>
</cache-container>Important
JGroups must be appropriately configured for clustered mode before attempting to load this configuration.
The
replicated-cache element configures settings for the distributed cache using the following parameters:
- The
nameparameter provides a unique identifier for the cache. - The
modeparameter sets the clustered cache mode. Valid values areSYNC(synchronous) andASYNC(asynchronous). - The
startparameter specifies whether the cache starts when the server starts up or when it is requested or deployed. - If
statisticsare enabled at the container level, per-cache statistics can be selectively disabled for caches that do not require monitoring by setting thestatisticsattribute tofalse.
For details about the
cache-container and locking, see the appropriate chapter.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.