Camel has the API to start or stop the route with the routeId like this
camelContext.startRoute("route1");
camelContext.stopRoute("route2");On 7/14/11 2:23 AM, boday wrote:
you can use the autoStartup attribute along with properties to do this...like this <route id="foo" autoStartup="{{cool.foo.startup}}"> xiangqiuzhao wrote:if my application use route config like : <routes> <route1 enable="yes">....</route1> <route2 enable="yes">....</route2> <route3 enable="no">....</route3> </routes> how to start the route1 and route2, i must control it by java coding?----- Ben O'Day IT Consultant -http://consulting-notes.com -- View this message in context: http://camel.465427.n5.nabble.com/how-to-design-which-routes-be-start-in-my-application-tp4583090p4583710.html Sent from the Camel - Users mailing list archive at Nabble.com.
-- Willem ---------------------------------- FuseSource Web: http://www.fusesource.com Blog: http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang
