This content has been marked as final.
Show 2 replies
-
1. Re: Resolving Composite Properties in Camel Bean
igarashitm Sep 24, 2014 3:43 AM (in response to mimer)1 of 1 people found this helpfulHi,
You may want to do like this in a camel route:
<
setHeader
headerName="messagelog.flow.name">
<
simple
>${properties:messagelog.flow.name}</
simple
>
</
setHeader
>
SwitchYard Composite property is tied to Camel Properties component (http://camel.apache.org/properties.html) and is not equal to Exchange/Message header/property.
hth,
Tomo
-
2. Re: Resolving Composite Properties in Camel Bean
mimer Sep 24, 2014 5:08 AM (in response to mimer)Hi again
I found that i had an error in my code. CamelContext.resolvePropertyPlaceholders(...) works, but i'd forgotten to wrap my property in brackets. This resolves my property from Composite Properties:
exchange.getContext().resolvePropertyPlaceholders("{{messagelog.flow.name}}");
Regards
Dennis