Ошибка проверки с целочисленным свойством (верблюд)

Я использую свойства конфигурации OSGi в Blueprint Camel (v 2.13.2), и все было в порядке, пока я не попытался свойства целочисленного свойства: timePeriodMillis в теге.

Этот код работает хорошо:

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://camel.apache.org/schema/blueprint/cxf" xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
xsi:schemaLocation="
         http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
         http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">


    <cm:property-placeholder persistent-id="myprops"/>

    <camelContext  xmlns="http://camel.apache.org/schema/blueprint">

        <route id="rt" trace="false" autoStartup="false">
            <from uri="amq://{{myQueue}}"/>
            <throttle timePeriodMillis="5">
                <constant>{{maxRPP}}</constant>
                <to uri="direct:mock" />
            </throttle>
        </route>    
    </camelContext>
</blueprint>

Когда я свойства timePeriodMillis:

<throttle timePeriodMillis="{{timePM}}">

Я получил две ошибки проверки:

cvc-attribute.3: The value '{{timePM}}' of attribute 'timePeriodMillis' on element 'throttle' is not valid with respect to its type, 'long'.
cvc-datatype-valid.1.2.1: '{{timePM}}' is not a valid value for 'integer'.

Когда я изменяю это (без кавычек):

<throttle timePeriodMillis={{timePM}}>  

Я снова получил ошибку проверки:

Open quote is expected for attribute "timePeriodMillis" associated with an  element type  "throttle".

Любая идея ? Спасибо

Ответы на вопрос(1)

Ваш ответ на вопрос