I need to have configurable text with some parameters to set in the body.
In my .cfg file I have
message=My message ${property.type} is for user ${property.user}
Properties are set in steps before.
If I use setBody(simple("{{message}}") I get text without properties
parameters. Any ideas how to set body with needed parameters?

Other similar problem is when I need to get property by dynamic name
Something like setHeader("My",
simple("{{userName."+"${property.name}"+"}}")). Something like that, but I
do get an error if I try to execute this, as property.name doesn't produce
property value... Any ideas?

Thank you a lot



--
View this message in context: 
http://camel.465427.n5.nabble.com/dynamic-properties-tp5729339.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to