activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remo Gloor (JIRA)" <jira+amq...@apache.org>
Subject [jira] [Commented] (AMQNET-422) Added support for transactions for Asyncronous Listeners
Date Wed, 06 Nov 2013 22:56:17 GMT

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

Remo Gloor commented on AMQNET-422:
-----------------------------------

I can compile that code to .NET 2.0 at least in VS 2012 and 2013. Are you using an old compiler?
And the only change to None DTC that some code was extracted from Dispatch into a new method
DispatchToAsyncListener. Is this really a too big change?

> 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#6144)

Mime
View raw message