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

Added support for transactions for Asyncronous Listeners

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • ActiveMQ
    • None
    • Patch Available

    Description

      Asyncronous Listeners do not support transactions properly. I suggest to add the option to register a callback that can be used to create a transaction for each message received by the asyncronous listener.

      e.g.

      ((MessageConsumer)consumer).CreateTransactionScopeForAsyncMessage = this.CreateScope;

      private TransactionScope CreateScope()

      { return new TransactionScope(TransactionScopeOption.RequiresNew); }

      Attachments

        Activity

          People

            Unassigned Unassigned
            remogloor Remo Gloor
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: