Erro de validação com propriedade inteira (camel)
Estou usando as Propriedades de Configuração OSGi no Blueprint Camel (v 2.13.2) e tudo correu bem até eu tentar propriedades de uma propriedade inteira: timePeriodMillis in tag.
Este código funciona bem:
<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>
Quando eu propriedades timePeriodMillis:
<throttle timePeriodMillis="{{timePM}}">
Eu tenho dois erros de validação:
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'.
Quando eu mudo para (sem aspas):
<throttle timePeriodMillis={{timePM}}>
Recebi novamente um erro de validação:
Open quote is expected for attribute "timePeriodMillis" associated with an element type "throttle".
Qualquer ideia ? obrigado