We are in the process of evaluating JBoss Cache for our Application. The main way it is going to be used is like two Servers : ServerA, ServerB. And presumably, both of them can run in two different machines - say 192.168.1.1:7500 and 192.168.1.2:7500.
The idea is to replicate the Cache from ServerA to ServerB.
Please can anyone point out :
1> The best way to implement it - the configuration set-ups to make the two applications as a part of a Cluster, asssign a Node and how would each Node know how to replicate data from the other.
2> Any pointers to any code written in this line would be very very helpful.
Thank you.
Read the JBossCache tutorial. It has a lot of useful information.
http://docs.jboss.org/jbcache/Tutorial.html