Class TransactionHelperImpl

java.lang.Object
org.jboss.narayana.jta.jms.TransactionHelperImpl
All Implemented Interfaces:
TransactionHelper

public class TransactionHelperImpl extends Object implements TransactionHelper
Author:
Gytis Trikleris
  • Constructor Details Link icon

    • TransactionHelperImpl Link icon

      public TransactionHelperImpl(jakarta.transaction.TransactionManager transactionManager)
  • Method Details Link icon

    • isTransactionAvailable Link icon

      public boolean isTransactionAvailable() throws jakarta.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:
      jakarta.jms.JMSException - if transaction service has failed in unexpected way to obtain transaction status
    • registerSynchronization Link icon

      public void registerSynchronization(jakarta.transaction.Synchronization synchronization) throws jakarta.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:
      jakarta.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 Link icon

      public void registerXAResource(XAResource xaResource) throws jakarta.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:
      jakarta.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 Link icon

      public void deregisterXAResource(XAResource xaResource) throws jakarta.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:
      jakarta.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.