For some component, I could set key and value at the exchange's in or out's
header instead of
using the component's option at the endpoint .

For me, it is not very clearly documented, which options could be set at
in/out /header

set option at endpoint URI

from(xxx) .inOut().to("activemq:queue:foo?replyTo=bar&receiveTimeout=250")
.to(yyy)

could I set value in the header like below way to
achieve the same effect?

from(xxx) .inOut()
.setHeader("replyTo", constant("bar"))
.setHeader("receiveTimeout", new Integer("250"))
.to("activemq:queue:foo) .to(yyy)

I hope I explain my meaning clearly enough, any suggestion or feedback is
more than welcome!

Reply via email to