Class TransactionState


  • public class TransactionState
    extends Object
    keep track of per-transaction state
    Author:
    Tony Ng
    • Method Detail

      • beforeCompletion

        public void beforeCompletion()
        this is called via callback of Synchronization right before a transaction commit or rollback to ensure that all XAResources are properly delisted
      • registerSynchronization

        public void registerSynchronization​(jakarta.transaction.Synchronization sync,
                                            org.omg.CosTransactions.Control control,
                                            boolean interposed)
                                     throws jakarta.transaction.RollbackException,
                                            IllegalStateException,
                                            jakarta.transaction.SystemException
        synchronized void cleanupTransactionStateMapping() { if (activeResources == 0) { TransactionManagerImpl tm = TransactionManagerImpl.getTransactionManagerImpl(); } }
        Throws:
        jakarta.transaction.RollbackException
        IllegalStateException
        jakarta.transaction.SystemException
      • listXAResources

        public Enumeration listXAResources()
        list all the XAResources that have been enlisted in this transaction.
      • containsXAResource

        public boolean containsXAResource​(XAResource res)
        return true if res has been enlisted in this transaction; false otherwise.