camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <willem.ji...@gmail.com>
Subject Re: Help regarding reading multiple response
Date Tue, 26 Feb 2013 03:09:12 GMT
It looks like the REQUEST QUEUENAME consumer doesn't know about the replyTo property of the
message.
BTW, I think it could be more easy for you to handle the multiple response with lower level
JMS API with the correlation id.


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Tuesday, February 26, 2013 at 3:29 AM, Shinta802 wrote:

> Hi Willem Jiang,
>  
> Thanks for the reply. I started using the ConsumerTemplate and I am still
> not getting the response back, below is the snippet that I have used.
>  
> ProducerTemplate camelTemplate = context.getBean("camelTemplate",
> ProducerTemplate.class);
> ConsumerTemplate consumerTemplate = context.getBean("consumerTemplate",
> ConsumerTemplate.class);
> camelTemplate.sendBody("wmq:queue:[REQUEST
> QUEUENAME]?useMessageIDAsCorrelationID=true", xe80Req);
> String resp = consumerTemplate.receiveBody("wmq:queue:[REPLY
> QUEUENAME]").toString();
>  
> My camel-context.xml is as following
> <camel:camelContext id="camel-client">
> <camel:template id="camelTemplate" />
> <camel:consumerTemplate id="consumerTemplate"/>
> </camel:camelContext>
>  
> I am not able to get the response
>  
> Thanks,
> Jagadeesh Sripada
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/Help-regarding-reading-multiple-response-tp5727972p5728118.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).




Mime
View raw message