This content has been marked as final.
Show 5 replies
-
1. Re: cache listeners disabled?
mircea.markus Jun 2, 2008 6:57 AM (in response to beep_beep)what we have instead now?
cache listeners. see Cache.addCacheListener(Fqn<?> region, Object listener) and subsequently org.jboss.cache.notifications.annotation.CacheListener -
2. Re: cache listeners disabled?
manik Jun 2, 2008 7:36 AM (in response to beep_beep)Basically read the user guide for 2.X. :-) There are examples, etc. up there as well.
-
3. Re: cache listeners disabled?
beep_beep Jun 4, 2008 3:40 AM (in response to beep_beep)But if what you say is correct, why I have that error:
java.lang.UnsupportedOperationException: Not implemented in this release at org.jboss.cache.invocation.CacheInvocationDelegate.addCacheListener(CacheInvocationDelegate.java:508)
-
4. Re: cache listeners disabled?
beep_beep Jun 4, 2008 3:44 AM (in response to beep_beep)I've checked, in this class
/** * The delegate that users (and interceptor authors) interact with when they create a cache by using a cache factory. * This wrapper delegates calls down the interceptor chain. * * @author Manik Surtani (<a href="mailto:manik@jboss.org">manik@jboss.org</a>) * @since 2.1.0 */ @SuppressWarnings("unchecked") public class CacheInvocationDelegate<K, V> extends AbstractInvocationDelegate implements CacheSPI<K, V> {
you have:public void addCacheListener(Fqn region, Object listener) { throw new UnsupportedOperationException("Not implemented in this release"); }
-
5. Re: cache listeners disabled?
beep_beep Jun 4, 2008 5:26 AM (in response to beep_beep)ok, thanks, I see, that only method without Fqn(first argument) works. Thanks.