You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Imran (JIRA)" <ji...@apache.org> on 2014/01/17 17:42:19 UTC

[jira] [Commented] (AMQNET-422) Added support for transactions for Asyncronous Listeners

    [ https://issues.apache.org/jira/browse/AMQNET-422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13874928#comment-13874928 ] 

Imran commented on AMQNET-422:
------------------------------

Would be great if this patch could be applied to Trunk please as we are also facing MSDTC issues.

> Added support for transactions for Asyncronous Listeners
> --------------------------------------------------------
>
>                 Key: AMQNET-422
>                 URL: https://issues.apache.org/jira/browse/AMQNET-422
>             Project: ActiveMQ .Net
>          Issue Type: New Feature
>          Components: ActiveMQ
>            Reporter: Remo Gloor
>            Assignee: Jim Gomes
>            Priority: Minor
>         Attachments: AddedSupportForAmbientTransactionForAsyncConsumers - When_AMQNET-413_IsFixed.patch, AddedSupportForAmbientTransactionForAsyncConsumers.patch, AddedSupportForAmbientTransactionForAsyncConsumers.patch, allDTCImprovments.patch
>
>
> 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);
>         }



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)