You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by dermoritz <ta...@hotmail.com> on 2015/10/22 14:19:32 UTC

AllowUseOriginalMessage do i need it?

I am not sure about
"AllowUseOriginalMessage is enabled. If access to the original message is
not needed, then its recommended to turn this option off as it may improve
performance."

In my route the original message is not used in error handler but i attached
a RoutePolicy that implements onExchangeDone to stop.
If i understood right this is called only on the original message. 

This is the beginning of my route:

        from( trigger )
            .routePolicy( new FinishNotifier( onFinsh ) )
            .to( in ).split().body()
            .streaming()

The original message is a very long stream from data base.

Do i need "AllowUseOriginalMessage" to be enabled.



--
View this message in context: http://camel.465427.n5.nabble.com/AllowUseOriginalMessage-do-i-need-it-tp5772968.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: AllowUseOriginalMessage do i need it?

Posted by dermoritz <ta...@hotmail.com>.
Thanks Claus!



--
View this message in context: http://camel.465427.n5.nabble.com/AllowUseOriginalMessage-do-i-need-it-tp5772968p5773058.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: AllowUseOriginalMessage do i need it?

Posted by Claus Ibsen <cl...@gmail.com>.
No

Its only if you call the getOriginalMessage method or have configured
the error handler to use the original message when it moves messages
to a DLQ etc.



On Thu, Oct 22, 2015 at 2:19 PM, dermoritz <ta...@hotmail.com> wrote:
> I am not sure about
> "AllowUseOriginalMessage is enabled. If access to the original message is
> not needed, then its recommended to turn this option off as it may improve
> performance."
>
> In my route the original message is not used in error handler but i attached
> a RoutePolicy that implements onExchangeDone to stop.
> If i understood right this is called only on the original message.
>
> This is the beginning of my route:
>
>         from( trigger )
>             .routePolicy( new FinishNotifier( onFinsh ) )
>             .to( in ).split().body()
>             .streaming()
>
> The original message is a very long stream from data base.
>
> Do i need "AllowUseOriginalMessage" to be enabled.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/AllowUseOriginalMessage-do-i-need-it-tp5772968.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition:
https://www.manning.com/books/camel-in-action-second-edition