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:48 GMT
Thank you Brad for the valuable info!

On Mon, Aug 22, 2016 at 3:06 PM, Brad Johnson
<brad.johnson@mediadriver.com> wrote:
> By the way, you may also want to compare those to a recipientList which is
> fairly simple to use and can be used with pretty much any sort of variable.
>
>
> http://camel.apache.org/recipient-list.html
>
> For example, I've used it with a combined REST/SOAP interface in CXF to
> route a request based on the operationName.
>
> <recipientList>
> <simple>direct-vm:${header.operationName}</simple>
> </recipientList>
>
> Unfortunately some of the Camel CXF documentation is a bit crufty.  You can
> now use interfaces instead of of concrete classes and the permits
> overloading the annotations on the interface for both SOAP and REST but use
> the same routes for both.
>
> I've also used it to do things like invoke templates for velocity on routes.
>
> .recipientList(header(MAIL_TEMPLATE))
>
> On Mon, Aug 22, 2016 at 1: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
>>



-- 
Regards,

Rajith Muditha Attapattu

Mime
View raw message