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 13:58:49 GMT

Read the javadoc of the ProducerTemplate from the just released Apache
Camel 2.4. It highlights the difference between the send* / request*

On Sat, Jul 17, 2010 at 3:56 PM, reynol16 <> wrote:
> I have a route like:
> I have an AbstractJUnit38SpringContextTests unit test which creates a
> message, sends it in to DIRECT.
> If I use producerTemplate.sendBody(msg), the message flows through fine (I
> have seen that BEAN processes it).
> If I use producerTemplate.sendBody(msg, ExchangePattern.InOut..), the
> message never makes it out of the ACTIVEMQ.
> If I use producerTemplate.requestBody(msg), the message never makes it out
> of the ACTIVEMQ.
> When it doesn't make it past ACTIVEMQ, I get the "ExchangeTimedOutException:
> The OUT message was not received within: 20000 millis." exception.
> I've also tried setting ACTIVEMQ explicitly to be InOut (both in the URI and
> in the java DRL), but I get the same result.
> What am I missing?  Thanks so much!
> -Mike
> --
> 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