You need to set the ClusterConfig attribute to let the Cache know you are running as a cluster. The mcast_port values should be the same for the caches on both machines. CacheMode should also be set to something other than LOCAL.
thank you for your reply , but in the sample configuration there is this part that i dont understand
<!-- UDP: if you have a multihomed machine,
set the bind_addr attribute to the appropriate NIC IP address, e.g bind_addr="192.168.0.2"
What is your question? Can you post the configuration?
Basically if you have > 1 network interface on your machine and you wish to use UDP as a network protocol, then you have to set your bind_address. I.e., tell JGroups which network interface to use.