Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 60375 invoked from network); 24 Jul 2008 00:35:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2008 00:35:27 -0000 Received: (qmail 17127 invoked by uid 500); 24 Jul 2008 00:35:26 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 16749 invoked by uid 500); 24 Jul 2008 00:35:25 -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 16738 invoked by uid 99); 24 Jul 2008 00:35:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 17:35:25 -0700 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2008 00:34:30 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KLonH-0000sp-CY for users@activemq.apache.org; Wed, 23 Jul 2008 17:34:55 -0700 Message-ID: <18623405.post@talk.nabble.com> Date: Wed, 23 Jul 2008 17:34:55 -0700 (PDT) From: vadimos To: users@activemq.apache.org Subject: Re: DLQ & message redelivery handling In-Reply-To: <18617794.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: vadim_katz@yahoo.com References: <18617794.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org I've answered question #2 ByteSequence byteSeq = amqMessage.getMarshalledProperties(); DataInputStream dataIn = new DataInputStream(new ByteArrayInputStream(byteSeq)); Map properties = MarshallingSupport.unmarshalPrimitiveMap(dataIn); but the rest I am still struggling with. vadim vadimos wrote: > > Hi, > > I've configured message redelivery via Spring 2.5 and ActiveMQ 5.1.0 to > redeliver messages on a runtime exception thrown by a listener. If > redelivered message still could not be handled, it is sent to DLQ. > After picking it from DLQ and I would like to have access to the original > message properties and the exception that caused redelivery. Here are my > questions: > > 1. I have detected that the message appearing in DLQ is of type > ActiveMQMessage even though the original message was ActiveMQMapMessage. > Why is that? This is still the case after I set copyOnMessageOnSend to > false. > 2. I can see the original message properties in marshalledProperties. How > can I un-marshall this object? > 3. How can I set the exception or at least exception message so that it > propagates through redelivery and eventually to DLQ message? (ps. this > seems to have been addressed in camel. See > https://issues.apache.org/activemq/browse/CAMEL-238) > > thanks, > vadim > -- View this message in context: http://www.nabble.com/DLQ---message-redelivery-handling-tp18617794p18623405.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.