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 <apiwo...@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. >