You should only call stop when the header is true for batch complete.
http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Exchange.html#BATCH_COMPLETE

On Thu, Feb 4, 2016 at 8:57 PM, fxthomas <[email protected]> wrote:
> hello,
>
> Tried that too, same issue.
> I used a oncompletion with a processor it worked then
>
> <onCompletion>
>                        <process ref="stopProcessor"/>
>                 </onCompletion>
>
> But the now the issue is the route gets stopped after the processing of 1
> Exchange message. Since I am using the Split stream , camel sends 1 row at a
> time in exchange . I want to Stop the route after all files have finished
> processing.
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Route-shudtdown-using-Route-Policy-not-working-tp5777220p5777237.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to