[ 
https://issues.apache.org/jira/browse/CAMEL-14335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17003697#comment-17003697
 ] 

michael elbaz commented on CAMEL-14335:
---------------------------------------

Another example here i don't understand what i'm doing wrong ?
{code:java}
from("rabbitmq:foo?queue=foo")
                .routeId("routeId")
                .errorHandler(deadLetterChannel("rabbitmq:dead?queue=dead")
                        .useOriginalBody()
                        .onPrepareFailure(exchange -> {
                            Exception exception = 
exchange.getProperty(EXCEPTION_CAUGHT, Exception.class);
                            // ...
                        }))
...
{code}


> Configuring DLQ
> ---------------
>
>                 Key: CAMEL-14335
>                 URL: https://issues.apache.org/jira/browse/CAMEL-14335
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 3.0.0
>            Reporter: michael elbaz
>            Priority: Major
>
> I'm getting weird comportement when i try to use the original body
> {code:java}
>     DeadLetterChannelBuilder deadLetterChannelBuilder = new 
> DeadLetterChannelBuilder();
>     deadLetterChannelBuilder.setRedeliveryPolicy(new 
> RedeliveryPolicy().disableRedelivery());
>     deadLetterChannelBuilder.useOriginalBody();
> {code}
> When i start my module for the first time is consuming some data from 
> rabbitmq then i don't get the original body (when error happen) but the 
> transformed one later when i push the same 'wrong' message (without 
> restarting my module) i will get the originalBody



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to