You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2011/06/30 22:15:29 UTC

[jira] [Closed] (AMQ-3361) Advisory for MessageConsumed: Advisory message sent even for unsuccessful message consumption(i.e. advisory sent before the rollback)

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

Timothy Bish closed AMQ-3361.
-----------------------------

    Resolution: Cannot Reproduce

I tried creating a test case for this, and the advisory messages all worked they way that I'd expect them to.  Reopen if you can provide a test case that shows a problem.

> 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