camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hadrian Zbarcea <>
Subject Re: Please explain better in-out
Date Thu, 05 Jan 2012 03:04:37 GMT

What you are looking for is a common use case supported by Camel. What 
you need to do is use the 'replyTo' parameter in your activemq uri [1], 
insead of the extra 'activemq:myReplyQueue' at the end of the route you 
mentioned. That will tell the activemq consumer to take the message 
resulted from processing and put it in the reply queue (and use a 
correlation id as mentioned by Willem), which is what you want.

One other thing to consider (independent of solution above) is using 
just camel-jms and plain "jms:..." uris.


On 01/04/2012 06:08 PM, mgiammarco wrote:
> Ok probably I have explained myself wrong. I need that camel consumes
> messages from the outside. I am testing it with:
> from("activemq:queryServer?exchangePattern=InOut")
> 				.to("log:it.giammar.pratobackend?showHeaders=true")
> 				.to("bean:saluta");
> But if I do not add another .to("activemq:myReplyQueue");
> nothing comes back.
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Hadrian Zbarcea
Principal Software Architect
Talend, Inc

View raw message