1 of 1 people found this helpful
Firstly, it makes sense to upgrade to 7.1.0.Final which is out now. It contains Infinispan 5.1.1.Final too.
Why do you want to use distributed with just 2 nodes? That doesn't make a lot of sense - replicated is probably more useful for you.
Here is a snippet of AS7.1 configuration for a distributed synchronous cache:
<distributed-cache name="myDistCache" mode="SYNC" owners="2" />
and here is a replicated synchronous cache
<replicated-cache name="myReplCache" mode="SYNC" />
There is a jboss-as-infinispan_1_1.xsd schema file distributed with JBoss AS7.1 which gives some insight into all the possible attributes.
Thanks Manik, Tristan.
As per Maniks suggestion , I upgraded to 7.1.0 Final and using replicated cache. Caching works. Manik , I am using two different physical machines ( running 3 servers /Jboss Instance ) on each machine. The idea was to get extra benefit of Distributed cache so that there will be cache space availabe at any given point of time. Please correct me if I views on distributed cache are wrong