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] <ml-node+s465427n5745475...@n5.nabble.com
>

> 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 <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5745475&i=0>>
> wrote:
>
> > 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.controller.camel.CamelController  - route route1 (status:
> > Started)
> >
> > and in my jsp:
> > <c:out value="${route.status}" /> ==> Started
> > <c:out value="${route.suspended}" /> ==> false
> > <c:out value="${route.suspending}" /> ==> false
> >
> >
> > Thanks!
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/suspend-and-resume-routes-tp5745446p5745451.html
>
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: [hidden email]<http://user/SendEmail.jtp?type=node&node=5745475&i=1>
> 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
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/suspend-and-resume-routes-tp5745446p5745475.html
>  To unsubscribe from suspend and resume routes, click 
> here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5745446&code=c3RlZmFub3B1ZGR1QGdtYWlsLmNvbXw1NzQ1NDQ2fC0xMzQ0NzkwMjc3>
> .
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://camel.465427.n5.nabble.com/suspend-and-resume-routes-tp5745446p5745477.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to