Bhaswar Goswami [
http://community.jboss.org/people/bhaswar_goswami] created the
discussion
"JbossCache replication problem on Jboss6.0.0.m1"
To view the discussion, visit:
http://community.jboss.org/message/547967#547967
--------------------------------------------------------------
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
[
http://community.jboss.org/message/547967#547967]
Start a new discussion in JBoss Cache at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]