Hi,

I'm using Camel 2.10.0.
In Spring context configuration I have an issue with properties resolution
{{...}} when they are inside of <choice> tag.
Resolution of the property "throttle.requests.per.second" does NOT work for:
        <route>
            <from uri="direct:endpointBean"/>
            <choice>
                <when>
                    <simple>${in.body} > 0</simple>
                    <throttle timePeriodMillis="1000">
                       
<constant>{{throttle.requests.per.second}}</constant>
                        <bean ref="endpointBean"/>
                    </throttle>
                </when>
            </choice>
        </route>

But it DOES work when throttle tag is before the choice:
        <route>
            <from uri="direct:endpointBean"/>
            <throttle timePeriodMillis="1000">
                <constant>{{throttle.requests.per.second}}</constant>
                <choice>
                    <when>
                        <simple>${in.body} > 0</simple>
                        <bean ref="endpointBean"/>
                    </when>
                </choice>
            </throttle>
        </route>

Could you please advise whether it is known defect?

Thanks.
--Victor



--
View this message in context: 
http://camel.465427.n5.nabble.com/Properties-are-not-resolved-inside-of-choice-tp5725523.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to