Configuring replication

Create and configure an Internal Replication Domain for your application.


  1. Open the WebSphere Integrated Solutions Console.
  2. 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.
    1. Click Environment > Replication domains > New.
    2. Complete the necessary fields. For Number of replicas, select Entire Domain. Save the changes.
  3. Enable cache replication in each cluster member.
    1. Click Servers > Application servers > Cluster Member Name > Container Services > Dynamic Cache Service.
    2. To enable replication, select Enable Cache Replication.
    3. Choose a replication domain.
    4. Choose a replication type. For WebSphere Commerce, the recommendation is to use Not shared. For other options, see Dynamic cache service settings.
      Note: With the Not shared replication type, invalidations are sent without replicating content.
    5. Repeat steps 3.a to 3.d for each cluster member.
    6. Save your changes.
  4. Ensure the replication domain and replication type of all out of box DistributedMap object caches are specified.
    1. Open the WebSphere Application Server Integrated Solutions Console.
    2. From the left menu, click Resources > Cache instances > Object cache instances.
  5. 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/ file. At least the object cache with JNDI name services/cache/WCSessionDistributedMapCache must be defined. For more information, see Enabling WebSphere Commerce data cache.
  6. 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.