1 Reply Latest reply on Apr 10, 2013 8:28 AM by mgencur

    Monitoring Cache Events Locally on Remote Instances

    ian.lawson

      Here's what I want to do - tell me if it is impossible.

       

      1. Setup a remote cache.
      2. Add/Remove elements to that cache remotely.
      3. Detect Entry Added and Entry Removed locally at the remote machine.

       

      Simple question is - is there a CacheManager I can use locally (on the remote instance) to which I can attach a listener such that I will consistently pick up change events on the cache that are triggered remotely?

       

      Currently I am using RemoteCacheManager to attain a RemoteCache at the remote machine, which of course does not have the addListener. I want to be able to attain a listener locally at the remote machine so I can monitor and collate key information for that cache.

        • 1. Re: Monitoring Cache Events Locally on Remote Instances
          mgencur

          Hi Ian,

          as far as I know, this is currently not possible. There are two problems:

          1) compatibility of data between client-server and local (embedded) mode - there's a JIRA which is not resolved yet: https://issues.jboss.org/browse/ISPN-2281

          2) You would have to bundle HotRod endpoint with your application which would serve the remote requests. The HotRod endpoint/server is written in Scala. Currently the Infinispan server implementation (with HotRod endpoint included) does not allow for app deployment and that's needed if you want to listen for events locally (in the application).