-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4053280
By: fredlev
I use Hibernate with the org.zkoss.zkplus.hibernate.HibernateSessionContextListener
described in the small talk.
In a page I make a saveorupdate of an object O.
In the same page (in fact, after a window.createComponent), I want to read the list of O's.
But the O I created is not completely available. Is it possible to commit the saveorupdate before going on?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4059587
By: henrichen
1. The HibernateSessionContextListener simply help copy Hibernate Session from servlet thread to event thread.
2. The OpenSessionInViewListener start and close a Hibernate session per request.
The session-per-request.
3. It is better give some example code or at least pseudo code to describe your case.
/henri
Asked: 2006-12-11 11:17:38 +0800
Seen: 221 times
Last updated: Dec 14 '06