Just a second...

Configuring the Diffusion server to use replication

You can configure replication by editing the etc/Replication.xml files of your Diffusion™ servers.

Ensure that you use the same replication configuration on all of the Diffusion servers in your cluster.
  1. Edit the Replication.xml file to configure replication.
    <replication enabled="true">
        <provider>HAZELCAST</provider>
        <sessionReplication enabled="true" />
        <topicReplication enabled="true">
            <topics>
                <topicPath>foo/bar</topicPath>
            </topics>
        </topicReplication>
    </replication>
    • In the replication element, set enabled to true to enable replication.
    • In the sessionReplication element, set enabled to true to configure the server to reflect client session information into the datagrid.
    • In the topicReplication element, set enabled to true to configure the server to reflect topic information and topic data into the datagrid.
    • Inside the topics element, use one or more topicPath elements to define the topics to which to apply topic replication and failover of the active update source.

      The content of the topicPath element is a path to a single topic. Topic replication and failover of the active update source are applied to the topic defined by the path and all topics below it in the topic tree.

      Unlike a topic selector, the topic path does not contain any leading or trailing characters. For example, use <topicPath>foo/bar</topicPath> to select the topic foo/bar.

      The topicPath elements also define which sections of the topic tree are have update sources created for them by the server.

  2. Restart the Diffusion server to load the configuration.
  3. Ensure that your clients are configured to reconnect if they lose their connection to the server.