|
I'm using Spring with Hibernate.
When hibernate.cache.use_second_level_cache is set to true, all my event listeners get called. When hibernate.cache.use_second_level_cache is set to false, pre|post update & pre|post delete event listeners work, but post commit update event listener doesn't. The issue seems to be specific to post commit event listeners.
The difference in the call stack between the two scenarios :
-
when working, it reaches this line in ActionQueue, and then this line in EntityUpdateAction
-
when not working, it reaches this line but doesn't go any further than that.
Somehow, when the second level cache is disabled, the 'processes' array stays empty and this loop never gets the chance to be executed.
Does this issue ring any bell or should I try to isolate it to produce a clean test case? That might be complicated for me but if I have to, I'll give it a try!
|