Uploaded image for project: 'ActiveMQ .Net'
  1. ActiveMQ .Net
  2. AMQNET-348

Add new Event points in ISession for Transaction Begin, Commit and Rollback notification

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.0, 1.5.1
    • Fix Version/s: 1.6.0
    • Component/s: ActiveMQ, NMS, Stomp
    • Labels:
      None

      Description

      Add three new events in the ISession interface to allow client to be notified when a Transaction has begin when its committed or when its rolled back. This is mainly useful in the DTC aware NetTxSession to inform clients that the DTC transaction has completed and its safe to close or perform other operations on the Session. It can also allow a client to log more information etc.

      We can define a delegate in ISession for this

          public delegate void SessionTxEventDelegate(ISession session);
      

      And add three event points for the notifications

          event SessionTxEventDelegate TransactionStartedListener;
          event SessionTxEventDelegate TransactionCommittedListener;
          event SessionTxEventDelegate TransactionRolledBackListener;
      

        Attachments

          Activity

            People

            • Assignee:
              tabish Timothy A. Bish
              Reporter:
              tabish Timothy A. Bish
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: