Listener to make sure each ZK thread got the same hibernat session context;
used with Hibernate's "thread" session context (org.hibernate.context.ThreadLocalSessionContext).
This listener is used with Hibernate's (version 3.1+) "thread" session context.
That is, when you specify
hibernate.current_session_context_class = thread
then you have to add following lines in application's WEB-INF/zk.xml:
<listener>
<description>Hibernate thread session context management</description>
<listener-class>org.zkoss.zkplus.hibernate.HibernateSessionContextListener</listener-class>
</listener>
author: henrichen |