You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Teofilis Martisius <te...@mediaworks.lt> on 2005/10/13 19:27:50 UTC

Cache notification

Hello,

I have a distributed lateral cache running on ~4 computers.

I want to register an event listener that gets called every time there is a
cache update/remove/removeAll event.

I would prefer to get notified only if the event was initiated in some other
node in the cluster, not locally. But any kind of notification would be nice.

Is it possible to do that, and what is the 'right' way to do it with JCS?

I found ICacheListener in javadoc, but I found no way to register it anywhere.
And it would probably be called no matter if local node or other nodes
initiated an event.

(I want to do extra cleanup elsewhere in my system when an element gets removed
from cache, that's why i need to receive the events)

Is there a way to implement this in JCS?

P.S. please add me to CC, I'm not subscribed to the mailing list. I sent
subscribe email, but I didn't receive any reply (or maybe it got lost/eaten by
spam filter, i'll try that again).

Teofilis

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org