Configuring replication
Create and configure an Internal Replication Domain for your application.
Procedure
- Open the WebSphere Integrated Solutions Console.
-
Create an Internal Replication Domain for your application:
Note: If you have a Replication Domain for your application, then you can use the existing one.
- Click .
- Complete the necessary fields. For Number of replicas, select Entire Domain. Save the changes.
-
Enable cache replication in each cluster member.
-
Ensure the replication domain and replication type of all out of box DistributedMap object
caches are specified.
- Open the WebSphere Application Server Integrated Solutions Console.
- From the left menu, click .
- Ensure that the replication domain and replication type of 1 (notShared) is specified for all the object caches that are defined in the Stores.war/classes/cacheinstances.properties file. At least the object cache with JNDI name services/cache/WCSessionDistributedMapCache must be defined. For more information, see Enabling WebSphere Commerce data cache.
-
Instead of using a default setting, always explicitly specify the replication mode for each
entry in cachespec.xml.
For example:
- Add
<sharing-policy>shared-push</sharing-policy>
to each cache-entry in cachespec.xml.Note: You can choose not to replicate certain cache entries. To configure a cache entry to not replicate, set<sharing-policy>not-shared</sharing-policy>
. See the cachespec.xml.For more information, see Cache replication.
- Add