activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-3361) Advisory for MessageConsumed: Advisory message sent even for unsuccessful message consumption(i.e. advisory sent before the rollback)
Date Fri, 17 Jun 2011 13:15:47 GMT

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

Timothy Bish commented on AMQ-3361:
-----------------------------------

Would be great if you could attach a JUnit test case to reproduce the issue, this will allow
for quicker resolution and ensure the issue stays fixed into the future.

> Advisory for MessageConsumed: Advisory message sent even for unsuccessful message consumption(i.e.
advisory sent before the rollback)
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-3361
>                 URL: https://issues.apache.org/jira/browse/AMQ-3361
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.4.2, 5.5.0
>         Environment: Spring 3.01.
> Using the DefaultMessageListenerContainer set to session transacted.
>            Reporter: Jaskaran
>
> I have enabled the advisoryForConsumed in the activeMQ conf file. 
> My Queue name is 'Test' and it has a listener(Spring:DefaultMessageListenerContainer)
. 
> Correspondingly there is an advisory topic called 'ActiveMQ.Advisory.MessageConsumed.Queue.Test'
and this has another listener.
>  
> My use case to illustrate my problem is below:- 
> 1) Send a message to Test Queue. 
> 2) The listener for the Test Queue is invoked. And it throws an exception(intentionally).

> 3) Now the topic advisory ActiveMQ.Advisory.MessageConsumed.Queue.Test gets a new advisory
message. 
> 4) The listener for the ActiveMQ.Advisory.MessageConsumed.Queue.Test is invoked. 
> The problem is that the advisory message should not be sent for unsuccessful message
consumption. Also the advisory message seems to be sent before the transaction rollback as
per the log file.
> Please refer to below link on nabble:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-Advisory-for-MessageConsumed-td3547010.html#a3563923

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message