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 <gary.l.mi...@ge.com> 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


RE: [EXTERNAL] is there a convert type for spring xml or simple

2017-08-09 Thread GaryLeeMills
thanks Vanshul, but I really do not want to use the headers for this. I'm
hoping there is a way to convert type in Spring XML. ???



--
View this message in context: 
http://camel.465427.n5.nabble.com/is-there-a-convert-type-for-spring-xml-or-simple-tp5810142p5810160.html
Sent from the Camel - Users mailing list archive at Nabble.com.


RE: [EXTERNAL] is there a convert type for spring xml or simple

2017-08-09 Thread Vanshul . Chawla
Set a header with that property and provide ResultType as java.lang.Integer

Vanshul

-Original Message-
From: GaryLeeMills [mailto:gary.l.mi...@ge.com] 
Sent: Wednesday, August 09, 2017 12:45 PM
To: users@camel.apache.org
Subject: [EXTERNAL] is there a convert type for spring xml or simple

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. 






  ${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.



is there a convert type for spring xml or simple

2017-08-09 Thread GaryLeeMills
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. 






  ${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.