You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by anakin59490 <je...@voila.fr> on 2013/02/11 18:43:52 UTC
properties: key
Hi,
is it possible to compose the key for the property to lookup ?
example:
I write
.to("properties:{{myname.is.bond}}") OK, it works
but i would like to use the headers
.to("properties:{{myname.is.{headers.name}}} or something in
this way
is it possible ?
Thank you
--
View this message in context: http://camel.465427.n5.nabble.com/properties-key-tp5727362.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: properties: key
Posted by anakin59490 <je...@voila.fr>.
hi,
it works
with :
.to("${properties:myname.is.{headers.name}}")
Thank you
--
View this message in context: http://camel.465427.n5.nabble.com/properties-key-tp5727362p5727486.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: properties: key
Posted by Claus Ibsen <cl...@gmail.com>.
On Mon, Feb 11, 2013 at 6:43 PM, anakin59490 <je...@voila.fr> wrote:
> Hi,
>
> is it possible to compose the key for the property to lookup ?
>
> example:
>
> I write
> .to("properties:{{myname.is.bond}}") OK, it works
>
> but i would like to use the headers
> .to("properties:{{myname.is.{headers.name}}} or something in
> this way
>
This seams like the dynamic to. See this FAQ
http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html
>
> is it possible ?
>
> Thank you
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/properties-key-tp5727362.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: properties: key
Posted by boday <be...@initekconsulting.com>.
see http://camel.apache.org/simple.html
>From Camel 2.9 onwards you can nest functions, such as shown below:
<setHeader headerName="myHeader">
<simple>${properties:${header.someKey}}</simple>
</setHeader>
anakin59490 wrote
> Hi,
>
> is it possible to compose the key for the property to lookup ?
>
> example:
>
> I write
> .to("properties:{{myname.is.bond}}") OK, it works
>
> but i would like to use the headers
> .to("properties:{{myname.is.{headers.name}}} or something in
> this way
>
>
> is it possible ?
>
> Thank you
-----
Ben O'Day
IT Consultant -http://consulting-notes.com
--
View this message in context: http://camel.465427.n5.nabble.com/properties-key-tp5727362p5727374.html
Sent from the Camel - Users mailing list archive at Nabble.com.