-
1. Re: cacheEntryModifiedEvent isPre (false) problem
jcmorgan08 Dec 31, 2010 9:38 AM (in response to jcmorgan08)I should also mention that the behaviour was as expected when using a persisted db but I get the above behaviour when using a purely in memory db, and also that if I wait for a short period and then examine the cache value, the value will (by then) have updated correctly.
-
2. Re: cacheEntryModifiedEvent isPre (false) problem
galder.zamarreno Jan 5, 2011 12:13 PM (in response to jcmorgan08)Hmmm, did you add a sync = false to @Listener annotation? If so, try without sync or set it to true.
What version of Infinispan do you use?
-
3. Re: cacheEntryModifiedEvent isPre (false) problem
jcmorgan08 Jan 5, 2011 12:33 PM (in response to galder.zamarreno)I did try sync = false. It wasn't successful!
I was using the latest stable InfiniSpan (4.2.0 FINAL)
The workaround for me is to use "getValue()" and to pass that value to methods that I call from within the cacheEntryModified method, rather than calling cache.get(...). Thanks for the reply though.
-
4. Re: cacheEntryModifiedEvent isPre (false) problem
manik Jan 5, 2011 3:37 PM (in response to jcmorgan08)1 of 1 people found this helpfulYou should be using getValue() rather than Cache.get().
-
5. Re: cacheEntryModifiedEvent isPre (false) problem
jcmorgan08 Jan 6, 2011 10:16 AM (in response to manik)Manik, thanks. That's fine and I can work around the implementation for now, however it is somewhat unsatisfactory if I wish to call standard methods that read the cache "after" the modification event. I'll mark this as answered, but an event that gets called after the update has been done (and is in the cache) would be useful. cheers, Jon
-
6. Re: cacheEntryModifiedEvent isPre (false) problem
galder.zamarreno Jan 13, 2011 5:50 AM (in response to jcmorgan08)I added an FAQ entry to http://community.jboss.org/docs/DOC-13439