camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Routes controlling + thread dsl
Date Tue, 11 Sep 2012 09:24:38 GMT
And check also this FAQ
http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html

On Tue, Sep 11, 2012 at 11:24 AM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
> On Tue, Sep 11, 2012 at 5:44 AM, Nafees <s.nafeesunnisa@gmail.com> wrote:
>> Hello Claus,
>>
>> I might not be clear in presenting my problem, I have concurrency for the
>> second route.
>>
>> ROUTE_LOCAL :
>> fileUrl - file:///home/user/domediation
>>
>> from(fileUrl).noAutoStartup().routeId(localRouteName)
>>                .threads()
>>               .bean(processManager)
>>               .bean(endRoute,localMethod).stop()
>>               .setExecutorService(service);
>>
>> If we are trying to suspend this route , let the threads complete processing
>> current file. But, they should not pick up next files. How this can be
>> accomplished.
>>
>
> Just stop the route using the API, it will stop the route graceful.
> http://camel.apache.org/graceful-shutdown.html
>
> You can assign an id to the route using .routeId("myCoolRoute").
> And then stop the route using its id. There is API on CamelContext.
> Or from JMX etc.
>
>
>> Awaiting ur reply
>>
>> Nafees
>>
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/Routes-controlling-thread-dsl-tp5719019p5719074.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: cibsen@fusesource.com
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message