camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdo <manfred.doh...@gmail.com>
Subject Re: stopRoute(): Waiting as there are still X inflight and pending exchanges to complete
Date Mon, 18 Mar 2013 14:34:23 GMT
Hello Claus, 

thanks for your quick answer!


Claus Ibsen-2 wrote
> See this FAQ how to stop a route from a route
> http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html

I've seen these examples but is it necessary to start a new thread? I've
seen examples with the following procedure at a couple of places --
including the Camel book:


> .process(new Processor() {
> public void process(Exchange exchange) throws Exception {
>     exchange.getContext().getInflightRepository().remove(exchange);
>     exchange.getContext().stopRoute("manual");
> }
> });






--
View this message in context: http://camel.465427.n5.nabble.com/stopRoute-Waiting-as-there-are-still-X-inflight-and-pending-exchanges-to-complete-tp5729348p5729351.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message