On Wed, Jul 13, 2011 at 8:23 PM, boday <[email protected]> wrote: > you can use the autoStartup attribute along with properties to do this...like > this > > <route id="foo" autoStartup="{{cool.foo.startup}}"> >
When using property placeholders, you can read about it here http://camel.apache.org/using-propertyplaceholder.html As Willem wrote you can also use a boolean value <route id="foo" autoStartup="false"> The property placeholders allows you to externalize this into eg a .properties file, so you can have in a .properties file: cool.foo.startup=false > > 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. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
