camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajith Muditha Attapattu <rajit...@gmail.com>
Subject Re: DynamicRouter vs RoutingSlip
Date Mon, 22 Aug 2016 19:15:30 GMT
Thank you Claus!
I just found out (the hard way) that I need to return null in the
dynamic router :)


On Mon, Aug 22, 2016 at 2:59 PM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
> Routing slip is calculated once and is therefore static.
>
> Dynamic route is evaluated after each step and is therefore dynamic.
> It keeps going on until the evaluation returns null / empty value.
>
> On Mon, Aug 22, 2016 at 8:42 PM, Rajith Muditha Attapattu
> <rajith77@gmail.com> wrote:
>> The routing slip method relies on a header to get the sequence, where
>> as with the DynamicRouter gives more flexibility by allowing a bean to
>> calculate the next step.
>> Apart from that are there any differences?
>>
>> On Mon, Aug 22, 2016 at 2:30 PM, Rajith Muditha Attapattu
>> <rajith77@gmail.com> wrote:
>>> On the surface both look very similar.
>>> Whats the difference between the two? and when would you choose one
>>> over the other?
>>>
>>> Regards,
>>>
>>> Rajith Muditha Attapattu
>>
>>
>>
>> --
>> Regards,
>>
>> Rajith Muditha Attapattu
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2



-- 
Regards,

Rajith Muditha Attapattu

Mime
View raw message