I must not be understanding the concept which is why I decided to ask the
question before continue with my reading.
The book I am reading says "When the pattern is InOnly, the exchange
contains an IN message. For InOut, an OUT message also exists". I understood
this as meaning that in an InOnly message exchange pattern (MEP) there is no
OUT message.
Based on the above I expected the below to log "AAA" in the console. However
I am getting "BBB".
[code]
from("jetty:http://localhost:8282/")
.removeHeaders("*")
.transform(constant("AAA"))
.inOnly("direct:BBB")
.log("${body}");
from("direct:BBB")
.delay(5000)
.transform(constant("BBB"));
[/code]
If in an InOnly MEP the exchange has no OUT message shouldn't after the call
to "direct:BBB" the IN message have been used as OUT message and therefore
log the body value "AAA"?
What does inOnly mean then in the above code?
--
View this message in context:
http://camel.465427.n5.nabble.com/Can-t-understand-what-inOnly-is-doing-tp5787961.html
Sent from the Camel - Users mailing list archive at Nabble.com.