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 [hidden
email]http://user/SendEmail.jtp?type=nodenode=5745475i=0
wrote:
Hi Claus,
to get the route status I'm just
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
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