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: set jms reply to in message header
Date Tue, 24 May 2011 03:21:38 GMT
Hi,

Can you change the queue name to queue:myqueue?

On 5/24/11 11:13 AM, Jim Newsham wrote:
>
> Hi Willem,
>
> Unfortunately I do not know the reply-to queue name at the time the
> route is created, which is why I hoped to set the reply-to header
> dynamically.  Are you saying that my example should work if I used a
> javax.jms.Destination?  I have tried the following but the result is the
> same as before.
>
> public void process(Exchange exchange) throws Exception {
>    exchange.getIn().setHeader("JMSReplyTo",
> ActiveMQConverter.toDestination("queue://myqueue"));
> }
>
> Thanks,
> Jim


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Connect at CamelOne May 24-26
The Open Source Integration Conference
http://camelone.com

Mime
View raw message