On Mon, Mar 18, 2013 at 3:34 PM, mdo <[email protected]> wrote:
> 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:
>
Yes and that is why the FAQ is updated to show the best solution.
The source code for CiA has also been updated with a better example to
do like the FAQ
>
>> .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.
--
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen