2 Replies Latest reply on Jan 20, 2011 12:11 PM by cbo_

    Listeners and CacheEntryModifiedEvent in replication mode

    itayhindy

      Hi,

       

      I register a listener for the infinispan cache. In case I work in replication mode, when I am inserting a new object to the cache, Is the CacheEntryModifiedEvent will be trigger in all my servers (the server that put the data and on all replicated servers) or just on the server that put the data?

       

      Thanks in advance

        • 1. Listeners and CacheEntryModifiedEvent in replication mode
          mircea.markus

          I expect the notification to happen in all the servers.

          1 of 1 people found this helpful
          • 2. Listeners and CacheEntryModifiedEvent in replication mode
            cbo_

            Just to clarify one thing from my observations. 

             

            If your entries are put into a cache prior to starting one of your servers then those entries will get to the newly started server via stateTransfer once you do a getCache if you have that enabled (fetchInMemoryState="true").  In this scenario you would not have a listener attached to your cache yet on your newly started server and therefore would not trigger the CacheEntryModifiedEvent.  Of course, once connected to the cache and the listener added you will get those events.

            1 of 1 people found this helpful