-->
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.  [ 2 posts ] 
Author Message
 Post subject: Struts/Hibernate/Sessions
PostPosted: Mon Jan 08, 2007 8:26 pm 
Newbie

Joined: Mon Jan 08, 2007 8:19 pm
Posts: 2
Hello everyone,

Hope you can help with this problem. I am deciding how to correctly handle sessions with struts. The problem I am having is that I want to keep the session open after I process the action and into the view.

I cannot close the session before going to the jsp page because I have a few lazy collections that are queried during the jsp page and they require an open session.

I have read a little about a servlet filter, however, does the filter close the connection after the jsp page has been sent? or before?

Also, what happens if a session remains open (doesn't get closed for some reason)?

thanks for any help!


Top
 Profile  
 
 Post subject: NeverMInd
PostPosted: Mon Jan 08, 2007 8:31 pm 
Newbie

Joined: Mon Jan 08, 2007 8:19 pm
Posts: 2
I think I found the answer to mine own question:

http://www.hibernate.org/43.html


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

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.