Hello all,
is this supposed to work?
<setProperty
propertyName="$simple{type:my.domain.StringConstants.EXCHANGE_PROP_TX_FAILED}">
<simple>${type:java.lang.Boolean.TRUE}</simple>
</setProperty>
StringConstants.EXCHANGE_PROP_TX_FAILED := "exchange_prop_tx_failed"
The property name is not evaluated to the string "exchange_prop_tx_failed".
Instead the expression is used verbatim as the property name.
The property value is evaluated to Boolean.TRUE as expected.
Using <log
message="$simple{type:my.domain.StringConstants.EXCHANGE_PROP_TX_FAILED}"...>
prints the expected value "exchange_prop_tx_failed" to the log.
Ralf
--
View this message in context:
http://camel.465427.n5.nabble.com/Simple-expression-not-evaluated-in-Spring-DSL-setProperty-tp5765820.html
Sent from the Camel - Users mailing list archive at Nabble.com.