Hi!
I'm programming a webapplication that does several actions on every request. Each action loads a large number of entities and transforms them into XML.
To speed up this transaction, I'm creating a cache that maps my action results to the entites, and my action results to the request. So, when I detect a dirty flush, I also flush my action result and request caches based on the dirty entity.
This works perfectly except for one thing. I'm using LoadEventListener.onLoad() to map my entities to the actions, and this method fires only once per entity per session. Is there any way to detect a load originating from the session cache?
I've tried clearing the session after every action in the request, but it all ends in pain when my lazyloaded collections get iterated...
So... Is there something like a LoadEventListener.onLoadFromSessionCache() event?
OJ
_________________ OJ
|