5 Replies Latest reply on Jun 4, 2008 5:26 AM by beep_beep

    cache listeners disabled?

    beep_beep

      Hate to ask that.
      But it looks like you disabled cache listeners in that release(2.1.1.GA-)?
      what we have instead now?

      Thanks!

        • 1. Re: cache listeners disabled?
          mircea.markus

           

          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

            Basically read the user guide for 2.X. :-) There are examples, etc. up there as well.

            • 3. Re: cache listeners disabled?
              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

                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

                  ok, thanks, I see, that only method without Fqn(first argument) works. Thanks.