Hello,
i would like to print the value of a exchangeProperty in a
throwException-Clause like this (Camel 2.15.3):
public void configure() throws Exception {
from("direct:start")
.setProperty("propertyX", constant(true))
.setProperty("propertyY", constant("hello"))
.choice()
.when(exchangeProperty("propertyX").isEqualTo(true))
.throwException(new Exception("message is " +
simple("${exchangeProperty.propertyY}")))
.end()
.process(new DummyErrorProcessor())
.end()
...
but I had no success, it doesn't print the value
...
Caused by: java.lang.Exception: Property is Simple:
${exchangeProperty.propertyY}
...
Any tipp here ?
--
View this message in context:
http://camel.465427.n5.nabble.com/Print-exchangeProperty-value-in-throwException-tp5771983.html
Sent from the Camel - Users mailing list archive at Nabble.com.