-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Problem with LoadEventListener and session cache
PostPosted: Thu Nov 30, 2006 5:01 pm 
Newbie

Joined: Wed Dec 07, 2005 6:31 am
Posts: 9
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.