camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Whytock <dwhyt...@gmail.com>
Subject Re: How to stop all Exchanges based on criteria like header value?
Date Fri, 26 Aug 2011 19:05:30 GMT
You could have a Processor that adds a header "StopFlag" under
whatever conditions are needed, and then a
when(header("StopFlag").isNotNull()).stop().  The Processor can
evaluate dynamic criteria, such as a particular value for a header, or
it can even be a DesignateProcessor that holds a no-op unless
something comes up.

Don

On Fri, Aug 26, 2011 at 12:16 PM, Andre Piwoni <apiwoni1@yahoo.com> wrote:
> Claus,
>
> I should be able to add InterceptStrategy to CamelContext and set
> Exchange.ROUTE_STOP if that's the only way.
>
> Thanks,
> Andre
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-stop-all-Exchanges-based-on-criteria-like-header-value-tp4735364p4738533.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
View raw message