[
https://issues.apache.org/activemq/browse/CAMEL-3141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61963#action_61963
]
Achim Nierbeck commented on CAMEL-3141:
---------------------------------------
Exactly,
here probably the relevant part of the exception:
{code}
Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1:
'{{startup_1}}' is not a valid value for 'boolean'.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
{code}
> Route autoStartup configurable through Property
> -----------------------------------------------
>
> Key: CAMEL-3141
> URL: https://issues.apache.org/activemq/browse/CAMEL-3141
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core, camel-spring
> Affects Versions: 2.4.0
> Reporter: Achim Nierbeck
>
> Using Camel 2.4 I want to make the usage of a certain route configurable
> through properties.
> {code}
> <camelContext id="camel" trace="true"
> xmlns="http://camel.apache.org/schema/spring">
>
> <route id="configurable_1" autoStartup="{{startup_1}}">
> <from uri="direct:start_1"/>
> <to uri="mock:end_1"/>
> </route>
>
> <route id="configurable_2" autoStartup="{{startup_2}}">
> <from uri="direct:start_2"/>
> <to uri="mock:end_2"/>
> </route>
> </camelContext>
> {code}
> But if I do use the PropertyPlaceholder on the CamelContext like below it
> works.
> {code}
> <camelContext id="camel" trace="true" autoStartup="{{startup_context}}"
> {code}
> So is this a bug or should this work this way?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.