[jboss-user] [JBossCache] - Re: Replication doesn't work even with the sample code provi

sambitd do-not-reply at jboss.com
Mon Nov 13 19:27:03 EST 2006


Hi,
  Im getting the same problem here while trying to replicate pojo cache. It expects remove method to be called before putObject for replication to work properly. I'm wondering if it is mandatory to use remove method before putObject always. Using this approach we have encountered a trivial issue some thing as below. Lets say there are 2 threads running in two cache nodes. One thread is updating the cache while the other is reading the cache. Since the first thread calls remove method before putting objects into cache, at times the second thread gets null object for the same key. Do we need to handle this using transaction of jboss cache automatically handles it by any configuration. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985655#3985655

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985655



More information about the jboss-user mailing list