activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaskaran (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMQ-3361) Advisory for MessageConsumed: Advisory message sent even for unsuccessful message consumption(i.e. advisory sent before the rollback)
Date Tue, 07 Jun 2011 06:20:58 GMT
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.5.0, 5.4.2
         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