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 2061694CA for ; Sat, 21 Jan 2012 23:08:27 +0000 (UTC) Received: (qmail 51650 invoked by uid 500); 21 Jan 2012 23:08:26 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 51554 invoked by uid 500); 21 Jan 2012 23:08:26 -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 51546 invoked by uid 99); 21 Jan 2012 23:08:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2012 23:08:25 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jason.dillon@gmail.com designates 209.85.161.171 as permitted sender) Received: from [209.85.161.171] (HELO mail-gx0-f171.google.com) (209.85.161.171) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2012 23:08:20 +0000 Received: by ggnk3 with SMTP id k3so920513ggn.2 for ; Sat, 21 Jan 2012 15:07:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=utzSyF5dAr4Pji1RTUS+AEhFKzpoJQRfHJbIBMnqyaw=; b=IR0/sDmI/l0seGoDXRcWjEXYUpP/LYFSzPOv1v4C44ZpSxHZGcoVvpEisLLyQx1i6J vAvEvAdWVbtzWvvBylpv7+q3Yh7FLZtopujhG42BIVddrcTXcdFV0bRPU+Xn3N6cU6Ie pusoXzCnNHOs4ls2RAe/EhBBsqmVT9WxJLCBM= Received: by 10.101.210.30 with SMTP id m30mr1331015anq.64.1327187279153; Sat, 21 Jan 2012 15:07:59 -0800 (PST) Received: from [10.0.1.55] (c-98-248-96-179.hsd1.ca.comcast.net. [98.248.96.179]) by mx.google.com with ESMTPS id v17sm20888994anm.21.2012.01.21.15.07.56 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 21 Jan 2012 15:07:57 -0800 (PST) Sender: Jason Dillon Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1251.1) Subject: Re: How to tell why message sent to DLQ? From: Jason Dillon In-Reply-To: <982B674D-BD67-469B-8AFF-15CD0641F300@planet57.com> Date: Sat, 21 Jan 2012 15:07:54 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <88AFC357-B2AE-4821-8841-5F39A8BC9FAC@planet57.com> <0C7EEBF1-89C6-4A91-8393-ECB3A2B39C14@planet57.com> <982B674D-BD67-469B-8AFF-15CD0641F300@planet57.com> To: users@activemq.apache.org X-Mailer: Apple Mail (2.1251.1) BTW, is there an easy way to via JMX look at the DLQ messages and = determine if they were sent here due to expiration? I didn't see any = hints when I looked that the messages had been expired and thus sent to = the DLQ. Perhaps the messages should get a property attached to explain = the reason for DLQ delivery? Something like a "dlqDeliveryReason" which = could be "expired" or "failure" and on "failure" you can go look at = "dlqDeliveryFailureCause" for more detail. Are there any other reasons why a message might be sent to the DLQ? --jason On Jan 21, 2012, at 2:29 PM, Jason Dillon wrote: > Doh! I didn't realize (or maybe I just forgot) that expired messages = are sent to the DLQ by default. >=20 > I also didn't realize that the JMSDestination on messages sent to a = virtual topic will retain the virtual topic destination and not the = consumer queue destination. >=20 > --jason >=20 > On Jan 20, 2012, at 2:20 AM, Gary Tully wrote: >=20 >> = org.apache.activemq.broker.region.virtual.VirtualTopicInterceptor#send >>=20 >> which calls: org.apache.activemq.broker.region.DestinationFilter#send >>=20 >> On 20 January 2012 01:48, Jason Dillon wrote: >>> Can you point me at the code which handles virtual topic = subscription message propagation to consumer queues plz? >>>=20 >>> --jason >>>=20 >>>=20 >>> On Jan 19, 2012, at 12:36 PM, Gary Tully wrote: >>>=20 >>>> should be, but the use case is narrow, see the test case: >>>> = http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/or= g/apache/activemq/MessageListenerRedeliveryTest.java?r1=3D1084175&r2=3D108= 4174&pathrev=3D1084175 >>>>=20 >>>> On 19 January 2012 19:09, Jason Dillon wrote: >>>>> Is this change in 5.5.1 and enabled by default? >>>>>=20 >>>>> If so I don't see any of these properties set. >>>>>=20 >>>>> --jason >>>>>=20 >>>>>=20 >>>>> On Jan 19, 2012, at 7:32 AM, Gary Tully wrote: >>>>>=20 >>>>>> For one use case, when a exception causes a rollback, that = exception >>>>>> is trapped. Have a peek at >>>>>> https://issues.apache.org/jira/browse/AMQ-3236 and the associated >>>>>> commits. We may be able to build on that. >>>>>>=20 >>>>>> On 19 January 2012 05:58, Jason Dillon = wrote: >>>>>>> Is there any easy way to get information about why a message had = been sent to ActiveMQ.DLQ? >>>>>>>=20 >>>>>>> I'm seeing a bunch of messages sent to a virtual topic (as = indicated by OriginalDestination property while browsing the = ActiveMQ.DLQ via visualvm, which end up in the DLQ. Really unsure why = any message sent to a virtual topic would end up here. Shouldn't the = virtual topic simply copy the message to all known client's and be done = with it? >>>>>>>=20 >>>>>>> More generally though, is there any way to include detail in the = message when sent to the DLQ as to why it was sent there? >>>>>>>=20 >>>>>>> --jason >>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>> -- >>>>>> http://fusesource.com >>>>>> http://blog.garytully.com >>>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>> -- >>>> http://fusesource.com >>>> http://blog.garytully.com >>>=20 >>=20 >>=20 >>=20 >> --=20 >> http://fusesource.com >> http://blog.garytully.com >=20