This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The Transaction Mediator can provide transaction functionality for its child mediators.



Syntax

<syn:transaction action="commit|fault-if-no-tx|new|resume|suspend|rollback|use-existing-or-new" />

UI configuration

Action:

  • Commit transaction (commit) - Marks the transaction as completed and ends the transaction.
  • Fault if no transaction (fault-if-no-tx) - Goes to error handler if no transaction.
  • Initiate new transaction (new) - Entry point for a new transaction.
  • Resume transaction (resume) - Resumes a paused transaction.
  • Suspend transaction (suspend) - Pauses a transaction.
  • Rollback transaction (rollback) - Rolls back a transaction.
  • Use existing or initiate transaction (use-existing-or new) - If a transaction already exists, continue it or create a new transaction.

Note

You can configure the Mediator using XML. Click on "switch to source view" in the "Mediator" window.


Example

For an example of using the Transaction mediator, see Transaction Mediator Example.

 

  • No labels