Class TransactionHelperImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      TransactionHelperImpl​(javax.transaction.TransactionManager transactionManager)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deregisterXAResource​(javax.transaction.xa.XAResource xaResource)
      Delist XA resource from a current transaction.
      boolean isTransactionAvailable()
      Check if transaction is active.
      void registerSynchronization​(javax.transaction.Synchronization synchronization)
      Register synchronization with a current transaction.
      void registerXAResource​(javax.transaction.xa.XAResource xaResource)
      Enlist XA resource to a current transaction.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TransactionHelperImpl

        public TransactionHelperImpl​(javax.transaction.TransactionManager transactionManager)
    • Method Detail

      • isTransactionAvailable

        public boolean isTransactionAvailable()
                                       throws javax.jms.JMSException
        Description copied from interface: TransactionHelper
        Check if transaction is active. If error occurs wrap an original exception with JMSException.
        Specified by:
        isTransactionAvailable in interface TransactionHelper
        Returns:
        whether transaction is active or not.
        Throws:
        javax.jms.JMSException - if transaction service has failed in unexpected way to obtain transaction status
      • registerSynchronization

        public void registerSynchronization​(javax.transaction.Synchronization synchronization)
                                     throws javax.jms.JMSException
        Description copied from interface: TransactionHelper
        Register synchronization with a current transaction. If error occurs wrap an original exception with JMSException.
        Specified by:
        registerSynchronization in interface TransactionHelper
        Parameters:
        synchronization - synchronization to be registered.
        Throws:
        javax.jms.JMSException - if error occurred registering synchronization that occurs when transaction service fails in an unexpected way or when the transaction is marked for rollback only or when transaction is in a state where Synchronization callbacks cannot be registered
      • registerXAResource

        public void registerXAResource​(javax.transaction.xa.XAResource xaResource)
                                throws javax.jms.JMSException
        Description copied from interface: TransactionHelper
        Enlist XA resource to a current transaction. If error occurs wrap an original exception with JMSException.
        Specified by:
        registerXAResource in interface TransactionHelper
        Parameters:
        xaResource - resource to be enlisted.
        Throws:
        javax.jms.JMSException - if error occurred enlisting resource that occurs when transaction service fails in an unexpected way or when the transaction is marked for rollback only or when transaction is in a state where resources cannot be enlisted.
      • deregisterXAResource

        public void deregisterXAResource​(javax.transaction.xa.XAResource xaResource)
                                  throws javax.jms.JMSException
        Description copied from interface: TransactionHelper
        Delist XA resource from a current transaction. If error occurs wrap an original exception with JMSException.
        Specified by:
        deregisterXAResource in interface TransactionHelper
        Parameters:
        xaResource - resource to be delisted.
        Throws:
        javax.jms.JMSException - if error occurred delisting resource. that occurs when transaction service fails in an unexpected way or when transaction is in a state where resources cannot be delisted.