I have following scenario:
1. There is created CacheManager in distribution clustering mode lets say over 10 nodes with numOwners set to 2
2. From that CacheManager we have cache = cacheManager.getCache()
3. If on node1 is invoked cache.put("1", "1") it is inserted in cache and distributed according to numOwners
Is there a way in this scenario how all nodes(members) in cluster would be notified that new value was inserted in cache? Using listeners on cache seems not to work in this case since not all caches on all nodes are updated - because of distribution.
Do you have any suggestions for this?
I had exact same usecase. Did not find any easier alternative, so used indexing (with replication) and hibernate.search/lucene query approach. Btw, I could not make it work due to some configuration issue. Would like to hear from others if there is any easier option.