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

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.0, 1.5.1
    • 1.6.0
    • ActiveMQ, NMS, Stomp
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: