-->
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: HTTP Session conflict - WebWork
PostPosted: Thu Aug 18, 2005 12:28 am 
Newbie

Joined: Thu Aug 18, 2005 12:20 am
Posts: 1
I store and retrieve WebWork user session via ...
ActionContext.getContext().getSession().get(name)
ActionContext.getContext().getSession().put(name, value);

I get Hibernate sessions from my singleton Session Factory via ...
s = sessionFactory.openSession();

Hibernate sessions are suppose to be short lived. Open before a transaction and closed after a transaction within a WebWork "action".

My WebWork session is long lived. A user logins in and a WebWork session is created until the user logs out.

BUT when I close the hibernate session ...
s.close()
... My WebWork session is closed unexpectedly and undesirably.

Can someone enlighten me on how to handle these two sessions

I'm using Hibernate 3 and the latest WebWork.
My research on how to do this started with Gavin King's AdminApp...
http://www.hibernate.org/159.html


Thanks,

AC


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.