camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nishant.rupani" <>
Subject RE: Not writing to Error queue
Date Wed, 25 Jul 2012 08:52:35 GMT
I tried couple of ways.

<onException useOriginalMessage="true">
            <bean ref="exceptionHandler" method="exceptionPrint" />
            <to uri="wmqError:${error.queue}" />

<route id="main" errorHandlerRef="myDeadLetterErrorHandler">

<bean id="myDeadLetterErrorHandler" class="org.apache.camel.builder.DeadLetterChannelBuilder">
            <property name="deadLetterUri" value="wmqError:${error.queue}" />
            <property name="redeliveryPolicy" ref="myRedeliveryPolicyConfig" />

<bean id="myRedeliveryPolicyConfig" class="org.apache.camel.processor.RedeliveryPolicy">
            <property name="maximumRedeliveries" value="1" />
            <property name="redeliveryDelay" value="5" />

From: Willem.Jiang [via Camel] []
Sent: Wednesday, July 25, 2012 1:34 PM
To: Rupani, Nishant (ISGT)
Subject: Re: Not writing to Error queue

How did you setup the DeadLetterQueue ?

On Wed, Jul 25, 2012 at 2:53 PM, nishant.rupani <
[hidden email]</user/SendEmail.jtp?type=node&node=5716436&i=0>> wrote:

> I am usign a router to consume messages from MQ. On exception, I want write
> the incoming message to the error queue. However, it is not writing message
> to error queue.
> For testing, I called a method of a bean on exception and that worked fine.
> but it is not publishing the message to error queue.
> We are using camel 2.9.0
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

If you reply to this email, your message will be added to the discussion below:
To unsubscribe from Not writing to Error queue, click here<>.

NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained
herein are not intended to be, and do not constitute, advice within the meaning of Section
975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received
this communication in error, please destroy all electronic and paper copies and notify the
sender immediately. Mistransmission is not intended to waive confidentiality or privilege.
Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor
electronic communications. This message is subject to terms available at the following link: If you cannot access these links, please notify
us by reply message and we will send the contents to you. By messaging with Morgan Stanley
you consent to the foregoing.

View this message in context:
Sent from the Camel - Users mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message