-->
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: Difficulties with Lazy associations
PostPosted: Fri Mar 11, 2005 4:00 pm 
Newbie

Joined: Thu Dec 23, 2004 9:14 am
Posts: 4
Hi all.

We are having a big problem with Lazy associations.

To introduce the problem, let me explain some issues about an architecture.
We want to share only one session across the same Thread execution, using a Thread Local variable to mantain our session.
We have Controllers that call our DAO's to get persistent data.
Our controllers are EJB's, some of them using RequiresNew transaction type.
When a requiresNew method returns, JBoss automatically disconnect the session, closing the connection.
So, if try to access a lazy association in another moment, Hibernate tell us that the session is disconnected.

Anyone knows a solution for this kind of problem?
Can we reconnect the session if it has been disconnected?

Thank you all.


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.