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 @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39 <http://www.linkedin.com/pub/robert-simmons/40/852/a39>* On Thu, Jan 2, 2014 at 11:02 AM, frida <stefanopu...@gmail.com> 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().getRoute(id); > and a camelContext (instance of SpringCamelContext) > > By using > this.getCamelContext().suspendRoute(route.getId(), 5, TimeUnit.SECONDS); > > my log says > INFO org.apache.camel.spring.SpringCamelContext - Route: route1 is > suspended, was consuming from: Endpoint[file:///tmp/camel_startfolder?.... > > but when I check for the route status is always Started > > I've noticed that route.suspend(); works fine... > > I'm pom.xml I have: > <camel.version>2.12.2</camel.version> > <spring.version>3.2.3.RELEASE</spring.version> > > Thanks. > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/suspend-and-resume-routes-tp5745446.html > Sent from the Camel - Users mailing list archive at Nabble.com. >