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.