Class SpringTransactionSynchronizationListener

java.lang.Object
org.zkoss.zkplus.spring.SpringTransactionSynchronizationListener
All Implemented Interfaces:
EventThreadCleanup, EventThreadInit, EventThreadResume

public class SpringTransactionSynchronizationListener extends Object implements EventThreadInit, EventThreadCleanup, EventThreadResume

Listener to make sure each ZK thread got the same ThreadLocal value of the spring's org.springframework.transaction.support.TransactionSynchronizationManager; especially those thread bound resources.

This listener is used with Spring Framework (version 1.2.8+) "thread" bounded resources.


        <listener>
                <description>Spring TransactionSynchronizationManager handler</description>
                <listener-class>org.zkoss.zkplus.spring.SpringTransactionSynchronizationListener</listener-class>
        </listener>
 

Applicable to Spring Framework version 2.x or later

Author:
henrichen