Class JmsTransactionalConnection

java.lang.Object
org.mule.jms.commons.internal.connection.JmsConnection
org.mule.jms.commons.internal.connection.JmsTransactionalConnection
All Implemented Interfaces:
org.mule.runtime.api.lifecycle.Disposable, org.mule.runtime.api.lifecycle.Stoppable, org.mule.runtime.extension.api.connectivity.TransactionalConnection, org.mule.sdk.api.connectivity.TransactionalConnection, org.mule.sdk.api.tx.Transactional
Direct Known Subclasses:
XaJmsTransactionalConnection

public class JmsTransactionalConnection extends JmsConnection implements org.mule.runtime.extension.api.connectivity.TransactionalConnection
Implementation of the JmsConnection which implements TransactionalConnection for Transaction Support in the JmsConnector
Since:
1.0
  • Constructor Details

  • Method Details

    • begin

      public void begin()
      Begins a new Transaction for a JMS Session indicating in the JmsSessionManager that the current Thread is being part of a transaction.
      Specified by:
      begin in interface org.mule.sdk.api.tx.Transactional
    • commit

      public void commit() throws org.mule.runtime.api.tx.TransactionException
      Executes a commit action over the bound JmsSession to the current Thread
      Specified by:
      commit in interface org.mule.sdk.api.tx.Transactional
      Throws:
      org.mule.runtime.api.tx.TransactionException
    • rollback

      public void rollback() throws org.mule.runtime.api.tx.TransactionException
      Executes a rollback action over the bound JmsSession to the current Thread
      Specified by:
      rollback in interface org.mule.sdk.api.tx.Transactional
      Throws:
      org.mule.runtime.api.tx.TransactionException