> Correct me if I am wrong. Camel will correlate the response if the other
> service sends back the response with the same correlation ID as was sent to
> it in the Request.
> In our case, the other services are third-party C++ services which work
> directly with MQ and do not use Camel.

Reply correlation Id is not a Camel-specific feature. This is standard
JMS goodie, so if your C++ broker is JMS-compilant it should set the
proper correlation ID.

If for some reason your C++ broker doesn't set JMS correlation ID
properly, you can use exclusive reply queue with JMS producer (just as
demonstrated on the snippet below) - in such case no selectors on the
correlation ID will be used.

from("direct:Q").to("jms:foo?replyTo=Qresponse&replyToType=Exclusive);

I highly recommend reading Camel JMS component documentation page [1]
as it covers RequestReplay communication with Camel in a details.

Cheers.

[1] http://camel.apache.org/jms

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com

Reply via email to