We are evaluating Jboss Pojo Cache to cluster our application. We are checking with each module. Right now I'm trying to use Pojo Cache to cache one of my module. This is not actually a POJO but a Manager object which is using in memory data. So we want to store the data in distributed cache so that, even one node goes down data can be retrived from the cache on the other node.
I'm trying to cache the Manager object which has a Map with String as key.
We are using Syncrounus replication mode. We are testing with 2 nodes. When we are caching the top level Manager object, it's reflected in both the JVMS. Then i'm stroing an object in the Map against to a String key in one JVM and trying to get that object from the Manager object with the key from the map in other JVM. I'm getting the values in the same JVM but unable to get them in the other JVM.
So, the data is not replicated to other JVM.
Is there any thing that i'm missing here?
Can any one please guide me in this aspect?
In the release 1.4, there are couple of examples in the distribution. Can you try them out first to make sure if works in your enviornment? And also that you can modify it further for your use cases for troubleshooting.
Not replicating can also be due to the mcast not working properly, e.g.