Java Camel:Spring DSL:Multicat';超时';属性中的属性

Java Camel:Spring DSL:Multicat';超时';属性中的属性,java,apache-camel,spring-dsl,Java,Apache Camel,Spring Dsl,我想在外部属性文件的多播标记中设置超时属性我可以在uri等定义中使用属性而不会出现{{property.name}}语法问题。 然而,下面的用法似乎是不允许的。有没有办法解决/纠正这个问题 <camel:camelContext id="myCamelContext" xmlns="http://camel.apache.org/schema/spring"> <propertyPlaceholder id="korek_config" location="file:

我想在外部属性文件的多播标记中设置超时属性

我可以在uri等定义中使用属性而不会出现{{property.name}}语法问题。

然而,下面的用法似乎是不允许的。有没有办法解决/纠正这个问题

<camel:camelContext id="myCamelContext" xmlns="http://camel.apache.org/schema/spring">

    <propertyPlaceholder id="korek_config" location="file:${config.path}/my-config.properties"/>

    <route>

        <from uri="...."/>

        <multicast parallelProcessing="true"
                   strategyRef="balancesAggregator"
                   timeout="{{retrieve.balances.timeout}}">

            <to uri="direct:balancesRead"/>
            <bean ref="serviceBean" method="getBalances"/>
        </multicast>

    </route>    

</camel:camelContext>

要以这种方式使用整数属性,请查看“为XML DSL中的任何类型的属性使用属性占位符”一节。您需要在blueprint/spring定义中为属性定义命名空间:

xmlns:prop="http://camel.apache.org/schema/placeholder"
然后,您应该能够使用

<multicast parallelProcessing="true"  prop:timeout="retrieve.balances.timeout">