camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: InOut JMS question with ProducerTemplate
Date Sat, 17 Jul 2010 15:19:44 GMT
You need 2 routes

from(direct) -> (AMQ)
from(AMQ) -> BEAN

Or you can do

from(direct) -> (AMQ) -> to("log:foo") -> XXX
from(AMQ) -> BEAN

If you want to continue routing in route 1 you can do it as well. But
you need that 2nd route to receive the JMS message and process it.

On Sat, Jul 17, 2010 at 4:52 PM, reynol16 <> wrote:
> I thought that camel automatically handled the JMSReplyTo piece (I ran across
> some posts when looking into this last about camel creating tmp queues and
> handling setting those headers automatically...and if I wanted to override
> it, I'd have to explicitly tell camel not to).  In the original example
> (DIRECT -> ACTIVEMQ -> BEAN), I would have thought BEAN (which is a
> processor that takes an Exchange) would be the consumer, and camel would set
> handle the routing back.
> Claus Ibsen-2 wrote:
>> If you want to do request/reply over JMS
>> You need a JMS consumer on that JMS queue you send to which can pick
>> up the message, process it and send back the reply to JMSReplyTo.
>> You can configure the timeout value from 20 sec to longer/lower if you
>> need.
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Apache Camel Committer

Author of Camel in Action:
Open Source Integration:

View raw message