Related Documentation : Ehcache Replication Guide : Replicated Caching Using RMI : Complete Example
Complete Example
Ehcache's own integration tests provide complete examples of RMI-based replication.
The best example is the integration test for cache replication. You can see it online in the source code example RMICacheReplicatorIT.java at this location: https://fisheye.terracotta.org/browse/Ehcache_Documentation_Set/branches/ehcache-2.10.1/ehcache-core/src/test/java/net/sf/Ehcache_Documentation_Set/distribution/
The test uses five ehcache.xml files representing five CacheManagers set up to replicate using RMI.
Copyright © 2010-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product Logo |   Feedback