camel-users mailing list archives

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

1)
<onException useOriginalMessage="true">
            <exception>java.sql.SQLException</exception>
            <handled>
                        <constant>true</constant>
            </handled>
            <bean ref="exceptionHandler" method="exceptionPrint" />
            <to uri="wmqError:${error.queue}" />
</onException>


2)
<route id="main" errorHandlerRef="myDeadLetterErrorHandler">
</route>

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

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



From: Willem.Jiang [via Camel] [mailto:ml-node+s465427n5716436h3@n5.nabble.com]
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:
> http://camel.465427.n5.nabble.com/Not-writing-to-Error-queue-tp5716435.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

________________________________
If you reply to this email, your message will be added to the discussion below:
http://camel.465427.n5.nabble.com/Not-writing-to-Error-queue-tp5716435p5716436.html
To unsubscribe from Not writing to Error queue, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5716435&code=bmlzaGFudC5ydXBhbmlAbW9yZ2Fuc3RhbmxleS5jb218NTcxNjQzNXwtMTA4NDIwMDI5OQ==>.
NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>

--------------------------------------------------------------------------
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:
http://www.morganstanley.com/disclaimers. 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: http://camel.465427.n5.nabble.com/Not-writing-to-Error-queue-tp5716435p5716441.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message