Re: suspend and resume routes

2014-01-03 Thread frida
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

Re: suspend and resume routes

2014-01-03 Thread Claus Ibsen
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

Re: suspend and resume routes

2014-01-02 Thread frida
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.

Re: suspend and resume routes

2014-01-02 Thread Claus Ibsen
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(

Re: suspend and resume routes

2014-01-02 Thread kraythe .
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 @