Hi

Ah what version of Camel are you using?

We used to have a bug with {{ }} not being resolved in nested tags, eg
which could explain its not replaced in the 2nd in your route.

Instead you can use simple and its properties function,
http://camel.apache.org/simple

<spring:simple>${properties:retryCount}</simple>

On Sat, Feb 8, 2014 at 4:39 PM, andymur <[email protected]> wrote:
> Hi
>
> I faced a problem, when I use this spring-camel context I got error about
> type conversion from String to Long, related to second {{retryCount}}. When
> I start debugging I realised that BaseTypeConverterRegistry#convertTo method
> got retryCount value (let say 10) in the first occurence and value
> "{{retryCount}}" in the second case (delayer component), so I don't know
> why.
>
> My Spring Camel context:
>
> <propertyPlaceholder location="classpath:camel.properties" id="properties"
> />
>         <route id="mojorun">
>             <from uri="timer://runOnce?delay=0&amp;repeatCount=1" />
>             <loop>
>                 <spring:constant>{{retryCount}}</spring:constant>
>                 <spring:inOnly uri="bean:mojo?method=shout"/>
>                 <spring:delay>
>                     <spring:constant>{{retryCount}}</spring:constant>
>                 </spring:delay>
>             </loop>
>         </route>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/failed-to-set-property-into-Delayer-tp5746991.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Reply via email to