Hi See this page how to use property placeholders with Camel http://camel.apache.org/using-propertyplaceholder.html
What version of Camel do you use? And do you use Spring or OSGi blueprint, or something? And what is ${property.type} is that another property placeholder with a key=type,eg eg from a .cfg or .properties file you have: type=Some bla goes here user=Some other bla here message=My message ${property.type} is for user ${property.user} On Mon, Mar 18, 2013 at 12:35 PM, jinaLu <jina...@yahoo.com> wrote: > 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. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen