2 Replies Latest reply on Sep 23, 2010 1:05 PM by galder.zamarreno

    Can't get object on the CREATE and MODIFIED events

    sellhorn

      I have a synchronous replicated cache, and I'm listening for all kinds of CacheEntryEvents. In my code, I can see the CREATED and MODIFIED events, but when I try to list the keys or get the object, the object is not there. I want to do some processing of these objects as they are created or modified, but on event dispatching they're not there!

       

      I can see the object *after* the event if I spawn a thread and make it sleep a bit, in that case I can do a get for the event.getKey() and it finds it.

       

      Is there any way to get the object/value reference on an event listener???

       

      (btw I try this on isPre() and !isPre() and it still doesn't work)