[jboss-user] [JBoss Cache: Core Edition] - Re: Why does TreeCache notify when putting data gotten by a

jshowalter do-not-reply at jboss.com
Sun Mar 1 15:49:11 EST 2009


Is there a way to tell the cache to only send notifications for certain operations, period?

We were able to turn cacheModeLocal on and off as needed based on whether an operation was supposed to notify other caches in a cluster, and on whether the cache is in a cluster.

But now we have a new problem: suppose a sequence of calls is made to the cache, all under one transaction. Some of those calls result in local faults, reads from the database, and local puts--which are of no interest to other caches--but other calls are caching of new data that is of interest to other caches.

If we set cacheModeLocal(true) for the first kind of operation and false for the second kind of operation, but both kinds of operations are performed on the same thread under the same transaction, then the final state of cache mode local is unpredictable, and it can't be right all the time for either kind of operation (either we wind up sending unwanted chatter to other caches in the cluster, or we wind up not sending necessary notifications to other caches in the cluster).

What we really want is to be able to say is notify only for these puts and not for these other puts, and have the setting for the two kinds of puts "stick".

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

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



More information about the jboss-user mailing list