0 Replies Latest reply: Dec 1, 2011 8:39 AM by user10649353 RSS

    Coherence push replication pattern examples with multiple nameCache

    user10649353
      I've test the push replication pattern to try an active/active syncrhonisation of 2 cluster on 2 sites. The sample work well with one nameCache, but how do we use multiple name cache ?

      http://coherence.oracle.com/display/INC10/coherence-pushreplication-pattern-examples

      Sample extract : cache-config.xml with cacheName 'publishing-cache'

      <cache-name>publishing-cache</cache-name>
      <scheme-name>distributed-scheme-with-publishing-cachestore</scheme-name>

      <event:target-cache-name>publishing-cache</event:target-cache-name>
      <event:conflict-resolver-scheme>
      <cr:class classname="com.oracle.coherence.examples.incubator.pushreplicationpattern.activeactive.ActiveActiveSumConflictResolver"/>
      </event:conflict-resolver-scheme>

      My Sample : cache-config.xml with 2 nameCahe 'RTD1' & 'RTD2'

      <cache-name>RTD*</cache-name>
      <scheme-name>distributed-scheme-with-publishing-cachestore</scheme-name>

      <event:target-cache-name>RTD1</event:target-cache-name>
      <event:conflict-resolver-scheme>
      <cr:class classname="com.oracle.coherence.examples.incubator.pushreplicationpattern.activeactive.ActiveActiveSumConflictResolver"/>
      </event:conflict-resolver-scheme>

      what about RTD2 ???

      <event:target-cache-name>RTD2</event:target-cache-name>
      <event:conflict-resolver-scheme>
      <cr:class classname="com.myclass.MyClassConflictResolver"/>
      </event:conflict-resolver-scheme>