So I have had a look at the exchange pattern and appears that the following
route defaults to InOnly:

from(REQUEST_QUEUE_ENDPOINT)
                .processRef(EnricherProcessor.ENRICHERPROCESSOR_ID)
                .to(RESPONSE_QUEUE_ENDPOINT);

So if I do the following:

from(REQUEST_QUEUE_ENDPOINT)
                .setExchangePattern(ExchangePattern.InOut)
                .processRef(EnricherProcessor.ENRICHERPROCESSOR_ID)
                .to(RESPONSE_QUEUE_ENDPOINT);

Then it all works as expected.

It is certainly not intuitive that a route with from(q1) and to(q2) be
InOnly...

I thought that InOut should used when you want to send a request and consume
the response?
As per http://camel.apache.org/request-reply.html

Cheerio,
Nic

--
View this message in context: 
http://camel.465427.n5.nabble.com/Important-difference-in-behaviour-between-processRef-and-beanRef-tp5715525p5715532.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to