Hi,

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
Consumer.

"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.

Cheers,

Ashwin...  



-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com 
---------------------------------------------------------
--
View this message in context: 
http://camel.465427.n5.nabble.com/how-to-decide-the-exchagne-pattern-of-the-route-tp5719231p5719245.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to