Class XaJmsTransactionalConnection

All Implemented Interfaces:
org.mule.runtime.api.lifecycle.Disposable, org.mule.runtime.api.lifecycle.Stoppable, org.mule.runtime.extension.api.connectivity.TransactionalConnection, org.mule.runtime.extension.api.connectivity.XATransactionalConnection, org.mule.sdk.api.connectivity.TransactionalConnection, org.mule.sdk.api.connectivity.XATransactionalConnection, org.mule.sdk.api.tx.Transactional

public class XaJmsTransactionalConnection extends JmsTransactionalConnection implements org.mule.runtime.extension.api.connectivity.XATransactionalConnection
JMS connection created when using a ConnectionFactory with XA enabled.

This class provides all the functionality required to work with Bitronix Transaction Manager.

Since:
1.4.0
  • Constructor Details

  • Method Details

    • getXAResource

      public XAResource getXAResource()
      This method gets called when there's an XA transaction in context. It can be invoked even before the XAJmsTransactionalConnection get used to retrieve the JmsSession.
      Specified by:
      getXAResource in interface org.mule.sdk.api.connectivity.XATransactionalConnection
    • getSession

      public JmsSession getSession(InternalAckMode ackMode, boolean isTopic) throws jakarta.jms.JMSException
      Provides access to the JmsSession to be used. If there's a transactional context with a session already attached then that session will be returned. Otherwise a new session will be created.
      Throws:
      jakarta.jms.JMSException
    • close

      public void close()
      Cleanups all the resources associated with the session.
      Specified by:
      close in interface org.mule.sdk.api.connectivity.XATransactionalConnection