Works fine for me check the unit test in camel-spring source code
camel-spring/src/test/resources/org/apache/camel/component/properties/SpringPropertiesComponentEIPConvertBodyToTest.xml


On Fri, Nov 5, 2010 at 11:34 AM, Andreas A. <[email protected]> wrote:
>
> Hi
>
> I'm upgrading to Camel 2.5 and this property is still not being resolved it
> seems, do I need to do something special to make it work?
>
> "The EIP now supports property placeholders in the String based options (a
> few spots in Java DSL where its not possible). For example:
> <convertBodyTo type="String" charset="{{foo.myCharset}}"/>"
>
> My route:
> <choice>
>        <when><simple>${properties:charset.external} != ''</simple>
>                <convertBodyTo type="String" charset="{{charset.external}}" />
>        </when>
>        <otherwise>
>                <convertBodyTo type="String" />
>        </otherwise>
> </choice>
>
> Exception:
> Caused by: java.nio.charset.IllegalCharsetNameException:
> {{charset.external}}
>        at java.nio.charset.Charset.checkName(Charset.java:284)
>        at java.nio.charset.Charset.lookup2(Charset.java:458)
>        at java.nio.charset.Charset.lookup(Charset.java:437)
>        at java.nio.charset.Charset.isSupported(Charset.java:479)
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-2-5-Propertyplaceholders-and-Spring-DSL-still-not-working-tp3251608p3251608.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to