Related Documentation : Ehcache Replication Guide : Replicated Caching Using JGroups : Example Configuration using UDP Multicast
Example Configuration using UDP Multicast
Suppose you have two servers in a cluster. You want to replicate sampleCache11 and sampleCache12 and you want to use UDP multicast as the underlying mechanism. The configurations for server1 and server2 are identical and will look like this:
<cacheManagerPeerProviderFactory
class="net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProviderFactory"
properties="connect=UDP(mcast_addr=231.12.21.132;mcast_port=45566;):PING:
MERGE2:FD_SOCK:VERIFY_SUSPECT:pbcast.NAKACK:UNICAST:pbcast.STABLE:FRAG:pbcast.GMS"
propertySeparator="::"
/>
Copyright © 2010-2015 Software AG, Darmstadt, Germany.

Product Logo |   Feedback