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 here:
http://ehcache.org/xref-test/net/sf/ehcache/distribution/RMICacheReplicatorTest.htmlThe test uses five ehcache.xml files representing five CacheManagers set up to replicate using RMI.