Re: is there a convert type for spring xml or simple

2017-08-09 Thread Claus Ibsen
Hi

See the documentation
http://camel.apache.org/using-propertyplaceholder.html

in the section:
Using Property Placeholders for Any Kind of Attribute in the XML DSL


On Wed, Aug 9, 2017 at 7:44 PM, GaryLeeMills  wrote:
> I'm on camel 2.15
> I am using parameter file   - ./etc/parameterFile.cfg
> inside I have a key=value pair - groupBy=10
> in my camel context I am pulling in the parameter, however, it is a string.
> I need to convert it to int. is there such a utility?  thank you,  I am
> using it for the tokenize token group for splitting.
>
>  autoStartup="false"
>>
> 
> 
> 
> 
>   ${date:now:MM-dd--HH:mm:ss}
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
>
> RENDERS:
> Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1:
> '{{groupBy}}' is not a valid value for 'integer'.
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/is-there-a-convert-type-for-spring-xml-or-simple-tp5810142.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2


Re: is there a convert type for spring xml or simple

2017-08-09 Thread Doug Douglass
On Wed, Aug 9, 2017 at 10:44 AM, GaryLeeMills  wrote:
>
> Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1:
> '{{groupBy}}' is not a valid value for 'integer'.
>

Based on this error message, I don't think your problem is type conversion.
Instead, I think the property is not getting substituted.

Can you show us how you've configured your property placeholder[1].

[1] http://camel.apache.org/using-propertyplaceholder.html