Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 68A9A601B for ; Tue, 24 May 2011 12:52:32 +0000 (UTC) Received: (qmail 80344 invoked by uid 500); 24 May 2011 12:52:32 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 80211 invoked by uid 500); 24 May 2011 12:52:31 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 80203 invoked by uid 99); 24 May 2011 12:52:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 12:52:31 +0000 X-ASF-Spam-Status: No, hits=4.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RFC_ABUSE_POST,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of jaskaran1981@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 12:52:26 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QOr5h-0002oc-PS for users@activemq.apache.org; Tue, 24 May 2011 05:52:05 -0700 Date: Tue, 24 May 2011 05:52:05 -0700 (PDT) From: karen To: users@activemq.apache.org Message-ID: <1306241525761-3547010.post@n4.nabble.com> Subject: ActiveMQ: Advisory for MessageConsumed MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, I have a requirement to get the messages that have been successfully consumed. My application is using the DefaultMessageListenerContainer of spring for the listeners. I have enabled the advisoryForConsumed. My Queue name is 'Test' and it has a listener . Correspondingly there is an advisory topic called 'ActiveMQ.Advisory.MessageConsumed.Queue.Test' and this has its own listener. I tried using the advisory for consumed but it doesnt seem to be working properly. 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. Is this supposed to happen even when a message was not consumed. I mean does this advisory topic get a message for successfull as well as unsuccessfull consumption? How do i get to know if a message was successfully consumed. Thanks for the help PS: i hope this problem isnt linked to spring transaction management. -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Advisory-for-MessageConsumed-tp3547010p3547010.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.