| org.objectweb.transaction.jta.TransactionManager
All known Subclasses: org.objectweb.jotm.Current,
TransactionManager | public interface TransactionManager extends javax.transaction.TransactionManager,ResourceManagerEventListener(Code) | | A TransactionManager extends JTA
javax.transaction.TransactionManager with an event API that
allows late enlistment of connections opened by resource managers before the
transaction has begun.
To enable late enlistment of connections, the TransactionManager
must be registered as a ResourceManagerEventListener with the
resource manager.
When the transaction manager receives an event from a
resource manager, it stores the events in a thread local list. The thread
local lists can be stacked/unstacked with the two methods
pushThreadLocalRMEventList and
popThreadLocalRMEventList . This is typically used when different
event lists are to be nested in the same thread, or when a list spams several
threads.
Created on Feb 7, 2002
author: Christophe Ney, cney@batisseurs. com |
popThreadLocalRMEventList | List popThreadLocalRMEventList()(Code) | | Pop the current set from the stack of thread local resource event sets
The list contains ResourceManagerEvent objects.
The possibly null ResourceManagerEvent list of events that have occured in the current thread since the last call of pushThreadLocalRMEventList or since the thread started. |
pushThreadLocalRMEventList | void pushThreadLocalRMEventList(List eventList)(Code) | | Push a new event list on the stack of thread local resource event sets.
The list must contain only ResourceManagerEvent objects.
Parameters: eventList - the possibly null list of events to store forecomingResourceManagerEvent events occuring in the current thread. |
|
|