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.