Hi, How did you setup the property component? I think you can not use the Spring property placeholder inside route definition. But here is an example you can take a look.
<camelContext xmlns="http://camel.apache.org/schema/spring"> <propertyPlaceholder id="properties" location="org/apache/camel/my.properties"/> <route autoStartup="{{enableRoute}}"> …… -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Tuesday, May 21, 2013 at 4:44 AM, javaCzar wrote: > Is there a way to get something like this to work: > > <route autoStartup="${enableRoute}"> > > The value of the attribute is set to a valid parsible string representation > of a boolean (ie. "true" or "false") yet I keep getting the following error: > > org.apache.camel.RuntimeCamelException: > org.apache.camel.FailedToCreateRouteException: Failed to create route > route8: Route[[From[quickfix:quickfix.cfg]] -> [Filter[s... because of Error > parsing [${enableRoute}] from property ${enableRoute} as a Boolean. > > Any assistnace would be greatly appreciated. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Enable-disable-routes-at-startup-using-Spring-tp5732852.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).