On Wed, Aug 29, 2012 at 9:47 PM, garrydias <garryd...@gmail.com> wrote:
> Hy guys
>
> I wrote the route below to perform this behavior:
> 1) call onExchangeBegin once
> 2) call onExchangeDone /body.envelopeList.size()/ times
>
> <camel:route id="routeLegacyDestinationEntry"
> routePolicyRef="loggingRoutePolicy">
>         <camel:from ref="legacyDestinationEntry" />
>         <camel:to uri="bean://legacyDestinationConsumer?method=process" />
>         <split parallelProcessing="true" streaming="true">
>                 <simple>${body.envelopeList}</simple>
>                 <to ref="localSmsDeliveryEntry" />
>         </split>
> </camel:route>
>
> But the current behavior is:
> 1) call onExchangeBegin once
> 2) call onExchangeDone once
>
> If the *<to ref="localSmsDeliveryEntry" />* is the last "to" in the route,
> why onExchangeDone is not called /body.envelopeList.size()/ times?
>

The route policy works coarse grained on the route level, eg the
incoming message on the route.
It does not matter if you split / aggregate / or send out X new
messages etc. It triggers on the route level (eg on the consumer of
the route).


>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/RoutePolicy-Split-tp5718325.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to