See ticket
https://issues.apache.org/activemq/browse/CAMEL-3171
We are in the mercy of spring namespace handler and it doesn't allow
property resolution, which means to support {{ }} everywhere in the
<camelContext> is going to be tricky.
So to support {{ }} we have to do this on a per EIP basis.
You can set it using a simple expression as a header in the XML.
Or from Java code in a Processor.
On Tue, Oct 5, 2010 at 3:01 PM, Andreas A. <[email protected]> wrote:
>
> Hi
>
> I'm doing some conversion of charset in a branch of one of my routes, I'd
> like that charset to be given in a properties file, but the charset
> attribute doesn't seems to be translated into the proper property value. Is
> this a bug with this tag?
>
> <convertBodyTo type="String" charset="${properties:charset.default}" />
> <convertBodyTo type="String" charset="{{charset.default}}" />
>
> ...
> Caused by: java.io.UnsupportedEncodingException:
> ${properties:charset.default}
> ...
>
> I suppose I get the same effect if I use a Processor to change the
> CHARSET_NAME on the Exchange?
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Error-parsing-simple-properties-in-convertBodyTo-tp3199424p3199424.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
Apache Camel Committer
Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus