Hi See this page http://camel.apache.org/using-propertyplaceholder.html
The syntax to use inside <camelContext> is {{ }} On Sat, Jul 13, 2013 at 11:38 PM, bonnahu <bonn...@gmail.com> wrote: > Hey guys, > I am new to Camel. Currently, I want to use PropertyPlaceholderConfigurer to > specify the autoStartup option in Camel route. Here is the > PropertyPlaceholderConfigurer bean: > > <bean id="inventoryProperties" > > class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> > <property name="locations"> > <list> > <value> > autostartup.properties > </value> > > </list> > </property> > </bean> > > Here is the content of the autostartup.properties file: > > route.autostart=true > > Here is what I use in the spring DSL xml: > > <route id="testingRoute1" autoStartup = "${route.autostart}" > > > > The error I got is > > [OnException[[class... because of Error parsing [${route.autostart}] as a > Boolean. > > > Can anyone help me here? > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-use-PropertyPlaceholderConfigurer-to-configure-the-autoStartup-option-tp5735604.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen