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.

Reply via email to