camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: dynamic property keys
Date Tue, 26 Jun 2012 08:03:39 GMT
On Mon, Jun 25, 2012 at 7:40 PM, paramjyotsingh
<paramjyotsingh@gmail.com> wrote:
> Hey Clause,
>
> I looked at the documentation it says that nested expressions are not
> supported in 2.8.X and older. Can you please suggest any work around for
> this scenario.
>

You can use a java bean / processor, and then there is any API on
CamelContext to resolve property placeholders
http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/CamelContext.html#resolvePropertyPlaceholders(java.lang.String)

Then you can lookup the placeholders 2 times as nested are still not
supported. But then you can do this manually in some java code.

And then in the <setHeader> you can use a <bean> expression to call
your bean / processor.

> Thanks and Regards,
> Paramjyot Singh
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/dynamic-property-keys-tp5714449p5715074.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message