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

Allow DTC Transaction to be maunally enlisted in Session

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.0
    • 1.5.1, 1.6.0
    • ActiveMQ
    • None

    Description

      Currently the .NET transaction support is limited to synchronous consumers since it relies on there being an Ambient transaction in order to automatically enlist in a distributed transaction. When an asynchronous listener is registered it dispatches in a separate thread which can't see the Ambient TX in the main thread. To allow for async listeners to participate the Session needs to allow the client app to force an enlistment in a TX, either by forcing the Ambient transaction of a TransactionScope or by using CommitableTransaction objects. This is a bit more onerous on the client since they need to more carefully manage TX state but for those that really want it we should go ahead and allow it.

      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: