Community

JbossCache replication problem on Jboss6.0.0.m1

created by Bhaswar Goswami in JBoss Cache - View the full discussion

Hi eveyone,

 

I am exploring the Jboss Cache replication in a Jboss Clustered environment.

 

I have been using JBoss6.0.m1 for this purpose. I am having two Jboss instaces running on the same machine and using TCP stack for the discovery and communication between cluster members.

 

Here , is the command that I use to start the instances :

 

 

run.bat -c nodeA -g TestCluster -b NodeA_IP -Djboss.messaging.ServerPeerID=1 -Djboss.default.jgroups.stack=tcp

-Djgroups.tcpping.initial_hosts=NodeB_IP

 

run.bat -c nodeB -g TestCluster -b NodeB_IP -Djboss.messaging.ServerPeerID=2 -Djboss.default.jgroups.stack=tcp -Djgroups.tcpping.initial_hosts=NodeA_IP [7600]

 

Just for information , in this case I have already tested the HTTP Session and SateFullSession Bean replication and it's happening properly.

 

To test EntityBean replication this is the configuration I have used :

 

1. Persistence.xml

 

 

<property name="hibernate.cache.use_second_level_cache" value="true" />

<property name="hibernate.cache.use_query_cache" value="true" />

<property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.jbc2.JndiMultiplexedJBossCacheRegionFactory" />

<property name="hibernate.cache.region.jbc2.cachefactory" value="java:CacheManager" />

<property name="hibernate.cache.region.jbc2.cfg.entity" value="mvcc-entity" />

<property name="hibernate.cache.region.jbc2.cfg.collection" value="mvcc-entity" />

<property name="hibernate.cache.region.jbc2.cfg.query" value="local-query"/>

 

 

 

 

2. jboss-cache-manager-jboss-beans.xml

 

 

   I have used the defualt definition and also tried changing the "cacheMode" to : REPL_SYNC

 

 

The Second level cache it's working for a specific node , but it's not replicating to the other nodes.

Is it because of the TCP stack that I an using or do I need to do change some more configuration here ?

 

Thanks in advance

 

Bhaswar  

Reply to this message by going to Community

Start a new discussion in JBoss Cache at Community