On Thu, Jan 2, 2014 at 6:02 PM, frida <stefanopu...@gmail.com> wrote:
> Hi All,
> I'm on my very first approach with Camel, and probably I'm missing (more
> than) something :)
>
> I would like to suspend and resume routes from a web interface.
>
> I have a route:
> DefaultRoute route = (DefaultRoute) this.getCamelContext().getRoute(id);
> and a camelContext  (instance of SpringCamelContext)
>
> By using
> this.getCamelContext().suspendRoute(route.getId(), 5, TimeUnit.SECONDS);
>
> my log says
> INFO  org.apache.camel.spring.SpringCamelContext  - Route: route1 is
> suspended, was consuming from: Endpoint[file:///tmp/camel_startfolder?....
>
> but when I check for the route status is always Started
>

How do you check the route status? What code do you use?


> I've noticed that route.suspend(); works fine...
>
> I'm pom.xml I have:
> <camel.version>2.12.2</camel.version>
> <spring.version>3.2.3.RELEASE</spring.version>
>
> Thanks.
>
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/suspend-and-resume-routes-tp5745446.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Reply via email to