public interface TransactionManager extends javax.transaction.TransactionManager, ResourceManagerEventListener
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. TransactionManager
must be registered as a ResourceManagerEventListener
with the
resource manager.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, 2002Modifier and Type | Method and Description |
---|---|
java.util.List |
popThreadLocalRMEventList()
Pop the current set from the stack of thread local resource event sets
The list contains
ResourceManagerEvent objects. |
void |
pushThreadLocalRMEventList(java.util.List eventList)
Push a new event list on the stack of thread local resource event sets.
|
begin, commit, getStatus, getTransaction, resume, rollback, setRollbackOnly, setTransactionTimeout, suspend
connectionClosed, connectionErrorOccured, connectionOpened
void pushThreadLocalRMEventList(java.util.List eventList)
ResourceManagerEvent
objects.eventList
- the possibly null list of events to store forecoming
ResourceManagerEvent
events occuring in the current thread.java.util.List popThreadLocalRMEventList()
ResourceManagerEvent
objects.ResourceManagerEvent
list of events that have occured in the current thread since the last
call of pushThreadLocalRMEventList
or since the thread
started.