[jboss-user] [JBoss Cache] New message: "Re: nodeCreated is not called when cache is starting"

utku ozbek do-not-reply at jboss.com
Mon Feb 15 07:22:22 EST 2010


User development,

A new message was posted in the thread "nodeCreated  is not called when cache is starting":

http://community.jboss.org/message/526326#526326

Author  : utku ozbek
Profile : http://community.jboss.org/people/avadula

Message:
--------------------------------------------------------------
I have a similar problem. I have two servers both running the same application. The primary one is started first. It creates a cache and secondary also uses the same.
 
When I put sth into cache of primary server (and both servers are up), I can see the data in the cache of secondary instance and it also hits the cache listener on the secondary server. I am making some other operations in the cache listener of secondary instance. Everything is ok in this scenario.
 
Another scenario is that; secondary server is down and only primary is up. When I put sth into cache and then start secondary server, the data is again replicated to the secondary server but it is not hitting the cache listener so I cannot make operations in my cache listener. I need to do them for every data that is put into the cache.
 
My JBoss Cache version is: 1.4.1.SP8
 
my configuration is:
 
<server>
 <mbean code="org.jboss.cache.pojo.jmx.PojoCacheJmxWrapper" name="jboss.cache:service=PojoCache">
  <depends>jboss:service=TransactionManager</depends>
  <attribute name="TransactionManagerLookupClass">org.jboss.cache.GenericTransactionManagerLookup</attribute>
  <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
  <attribute name="CacheMode">REPL_SYNC</attribute>
  <attribute name="ClusterName">PojoNECacheCluster</attribute>    
  <attribute name="FetchInMemoryState">true</attribute>
  <attribute name="UseRegionBasedMarshalling">true</attribute>
  <attribute name="InitialStateRetrievalTimeout">15000</attribute>
  <attribute name="SyncReplTimeout">15000</attribute>
  <attribute name="LockAcquisitionTimeout">10000</attribute>
 </mbean>
</server>
 
 
And some more configuration on java code (because we need to decide IP, ports etc. on runtime) :
 
//Generate Cluster configuration for Cache
StringBuilder sbCore =
*new* StringBuilder();sbCore.append(

"TCP(bind_addr=");sbCore.append(bindAddr);
sbCore.append(

";end_port=");sbCore.append(cachePort);
sbCore.append(

";loopback=true;start_port=");sbCore.append(cachePort);
sbCore.append(

"):TCPPING(initial_hosts=");sbCore.append(peers);
sbCore.append(

";num_initial_members=");sbCore.append(num);
sbCore.append(

";port_range=2;timeout=2000):MERGE2(max_interval=20000;min_interval=10000):FD(shun=true):FD_SOCK");sbCore.append(

":VERIFY_SUSPECT(timeout=1500):pbcast.NAKACK(gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800)");sbCore.append(

":UNICAST(timeout=600,1200,2400,4800):pbcast.STABLE(desired_avg_gossip=400000)");sbCore.append(

":FC(max_credits=2000000;min_threshold=0.10):FRAG2(frag_size=8192)");sbCore.append(

":pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER");
 
I need help.
 
Thanks,
Avadula

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/526326#526326




More information about the jboss-user mailing list