activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <jira+amq...@apache.org>
Subject [jira] [Closed] (AMQNET-406) Messages for rollbacked transactions are dequeued
Date Mon, 04 Feb 2013 20:32:13 GMT

     [ https://issues.apache.org/jira/browse/AMQNET-406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Timothy Bish closed AMQNET-406.
-------------------------------

    Resolution: Not A Problem

The behavior is expected since the TX scope is not linked to the onMessage calls state. 
                
> Messages for rollbacked transactions are dequeued
> -------------------------------------------------
>
>                 Key: AMQNET-406
>                 URL: https://issues.apache.org/jira/browse/AMQNET-406
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: ActiveMQ
>            Reporter: Remo Gloor
>            Assignee: Jim Gomes
>
> When a transaction scope is not Completed then the message should not be dequeued. In
this case the message should be rollback and retried.
> This little program shouldn't dequeue any message and the message should end in the DLQ:
>             static void Main()
>             {
>                 using (var connection = CreateConnectionFactory().CreateNetTxConnection())
>                 using (var session = connection.CreateSession())
>                 using (var consumer = session.CreateConsumer(session.GetQueue("test")))
>                 {
>                     connection.Start();
>                     consumer.Listener += OnMessage;
>                     Console.ReadKey();
>                 }
>             }
>         private static void OnMessage(IMessage message)
>         {
>             using (var tx = new TransactionScope())
>             {
>             }
>         }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message