camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashwin Karpe <>
Subject Re: how to decide the exchagne pattern of the route
Date Thu, 13 Sep 2012 07:58:46 GMT

Please check out the section "Request-reply over JMS" in the Camel JMS
component documentation. Note the following

"In essence the MEP of the Exchange should be InOut when you send a message
to a JMS queue."

Camel uses temporary replyTo Queue to send responses back from a JMS

"A temporary queue is used as reply queue, and automatically created by
Camel. To use this do not specify a replyTo queue name. And you can
optionally configure replyToType=Temporary to make it stand out that
temporary queues are in use."

The question then becomes whether the JMS Producer set up to expect a
response back. This is where the InOut MEP matters...
"The JmsProducer detects the InOut and provides a JMSReplyTo header with the
reply destination to be used. By default Camel uses a temporary queue, but
you can use the replyTo option on the endpoint to specify a fixed reply
queue (see more below about fixed reply queue)."

Hopefully this clears everything up for you.



Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary) 

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message