-->
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: session management in a 2 tier
PostPosted: Mon Oct 11, 2004 7:38 pm 
Newbie

Joined: Fri Aug 20, 2004 1:13 pm
Posts: 10
This is a general question for 2 tiered (app server and DB). I am getting started with Hibernate and was using ThreadLocal to hold the session and disconnecting it with a ServletFilter. That doest work well bc if I get an object in one request with one thread, and then try to get the dependent objects (lazy loaded) in a subsequent request with another thread, hibernate complains.

I guess one solution is to go to a hibernate session per HttpSession with a session disconnect filter. Are there any other solutions or any references to other solutions. Any thoughts are appreciated.

_________________
-alan


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.