camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jinaLu <>
Subject Re: dynamic properties
Date Tue, 19 Mar 2013 06:29:32 GMT
I use camel 2.8 according my serviceMix server.
In cfg I have:
message=My message ${property.type} is for user ${property.user} 
messageSubject.invoice=Invoice message

I use Java DSL to define route and osgi blueprint for other purposes. My
route looks like:
.setProperty("type", xpath("/message/@Type"))
.setProperty("user", xpath("/message/@To"))
 .setHeader("messageText", simple("{{message}}"))
 .setHeader("messageSubject", simple("{{messageSubject.${property.type}}}"))

None of this header setters work.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message