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.

Reply via email to