Related Documentation : Ehcache Replication Guide : Using Replication : Adding Replication to an Existing Cache
Adding Replication to an Existing Cache
The cache event listening works but it does not get plumbed into the peering mechanism. The current API does not have a CacheManager event for cache configuration change. You can however make it work by calling the notifyCacheAdded event.
getCache().getCacheManager().
getCacheManagerEventListenerRegistry().notifyCacheAdded("cacheName");
Copyright © 2010-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product Logo |   Feedback