Access Keys:
Skip to content (Access Key - 0)
Cancel    
Cancel   
 

Contents

Multi resources transaction demarcation

Mule EE provides support for multiple resources transaction demarcation.

  • xa-transactional element: Supports transaction demarcation by using XA transactions
  • multi-transactional element: Supports transaction demarcation by musing mule built-in multi transactions.

By default, when using multi resource transaction demarcation, any transactional outbound endpoint will be executed within the same transaction.

How to use XA transactions

To use XA transactions use the xa-transactional element present in the EE namespace.

The message sent to orders JMS queue and the update in the orders table will be done inside the same transaction

In case that there's already an XA transaction in context, the transaction will be suspended and then resumed after leaving the xa-transactional element.

How to use multi transactions

To use multi transaction use the multi-transactional element present in the EE namespace.

The message sent to orders JMS queue and the notification message sent to the ordersNotifications VM queue will be done inside the same transaction