Yes!
camelContext().getRouteStatus(id) returns Suspended as expected :)
I've noticed the same behaviour with route.resume(); VS
camelContext().resumeRoute(id);
2014/1/3 Claus Ibsen-2 [via Camel]
> Hi
>
> Can you try using getRouteStatus from CamelContext.
>
>
> http://camel.apache.org/maven
Hi
Can you try using getRouteStatus from CamelContext.
http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/CamelContext.html#getRouteStatus(java.lang.String)
On Thu, Jan 2, 2014 at 8:39 PM, frida wrote:
> Hi Claus,
>
> to get the route status I'm just checking route.getSta
Hi Claus,
to get the route status I'm just checking route.getStatus()
this.getCamelContext().suspendRoute(route.getId(), 5, TimeUnit.SECONDS);
//here I've also tried a brutal thread.sleep (7000);
log.info("route {} (status: {})", new Object[]{id, route.getStatus()});
that turns in
INFO com.ste.
On Thu, Jan 2, 2014 at 6:02 PM, frida 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(
You can connect to JMX port of camel to accomplish this. There are a couple
of user interfaces that use web technology such as Hawtio. Writing one
would also not be that big of a deal.
See the following link: http://camel.apache.org/camel-jmx.html
*Robert Simmons Jr. MSc. - Lead Java Architect @