Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 666DA606B for ; Thu, 30 Jun 2011 20:15:53 +0000 (UTC) Received: (qmail 30870 invoked by uid 500); 30 Jun 2011 20:15:53 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 30800 invoked by uid 500); 30 Jun 2011 20:15:52 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 30792 invoked by uid 99); 30 Jun 2011 20:15:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 20:15:52 +0000 X-ASF-Spam-Status: No, hits=-1998.7 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 20:15:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 28CFA43C413 for ; Thu, 30 Jun 2011 20:15:29 +0000 (UTC) Date: Thu, 30 Jun 2011 20:15:29 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: <706903675.6805.1309464929148.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1315444364.2896.1307427658895.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (AMQ-3361) Advisory for MessageConsumed: Advisory message sent even for unsuccessful message consumption(i.e. advisory sent before the rollback) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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