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