-
1. Re: How to register listeners ?
prabhat.jha Jul 1, 2012 7:36 PM (in response to gajendra083)1 of 1 people found this helpfulSee https://github.com/prabhatjha/infinispan-examples/blob/master/carmart-tx-jdbc/src/main/java/org/infinispan/examples/carmart/session/LocalStatisticsProvider.java for different cache level envents.
-
2. Re: How to register listeners ?
fangyuchen Jul 1, 2012 9:36 PM (in response to gajendra083)1 of 1 people found this helpfulThe listeners can be registered at CacheManager level or Cache level. Both have addListener(Object listener) method. You can check the class org.infinispan.notifications.cachemanagerlistener.CacheManagerNotifierImpl for the allowed listener at CacheManager level and the class org.infinispan.notifications.cachelistener.CacheNotifierImpl at the Cache level.
-
3. Re: How to register listeners ?
rsmrsmrsm Apr 10, 2013 4:23 PM (in response to gajendra083)Not an answer, more extension of existing question - "How to register listener to second level cache 2LC in JBoss AS 7, Hibernate 4.2.0, Infinispan 5.1.8"?
For some reason cacheContainer.getCache().addListener(newMyListener()) do log events like cache creation, but do not log events like "entry visited", "entry updated" etc. (MyListener and its methods are annotated properly)
-