Uploaded image for project: 'Synapse'
  1. Synapse
  2. SYNAPSE-480

Transaction mediator for synapse

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 2.0
    • Component/s: Core
    • Labels:
      None

      Description

      New synapse mediator to manipulate JTA transactions.

      syanpse.xml configuration for new mediator:
      <transaction action="new|use-existing-or-new|fault-if-no-tx|commit|rollback|suspend|resume"/>

      Meaning of action attribute values are explained below:
      new : create a new jta transaction. generate a fault if a transaction already exist.
      use-existing-or-new : create a new jta transaction. do nothing if a transaction exist.
      fault-if-no-tx : generate a fault if no transaction exist. do nothing if a transaction exist.
      commit : commit transaction. generate a fault if no transaction exist.
      rollback: rollback transaction. generate a fault if no transaction exist.
      suspend: suspend transaction. generate a fault if no transaction exist.
      resume: resume transaction. generate a fault if no transaction exist.

      There will be a new transaction configuration section in axis2.xml to define UserTransaction (used to create a new transaction) and TransactionManager (need for suspend and resume actions ) JNDI parameters.

      newly created usertransaction is assigned to axis2 message context property named BaseConstants.USER_TRANSACTION and newly created transaction manager is assigned to axis2 message context property named BaseConstants.TRANSACTION_MANAGER

      Same message context property is used by JMS transport when creating a new usertransaction.

        Attachments

        1. tx_mediator.patch
          22 kB
          irantha suwandarathna
        2. tx_mediator.patch
          26 kB
          irantha suwandarathna

          Issue Links

            Activity

              People

              • Assignee:
                ruwan Ruwan Linton
                Reporter:
                irantha irantha suwandarathna
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: