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

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.

Reply via email to