-->
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: Long web user transaction / entities + lazy loading
PostPosted: Mon Aug 20, 2007 12:27 pm 
Newbie

Joined: Wed Nov 22, 2006 7:28 am
Posts: 12
Hi

Is there a recommanded pattern to use to allow long running user transactions using the open session in view pattern.
I read here and there that the second level cache may be the solution to my problem but although I will end up using it for performance reasons I wonder if there are any other ways of doing this.

What I do at the moment is get an entity and then store it in its entirety (not its id only) into an HttpSession variable. The reason I am doing this is to use the bidirectional binding support in Spring.Web.
Other way is to use separate nhibernate sessions from the main UI session to store "cached" entities but then I do have to develop connection pooling and such like...

Any idea?
Daniel


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.