I have tried "queue:myqueue" and the result is the same. I tried both:
//exchange.getIn().setHeader("JMSReplyTo",
ActiveMQConverter.toDestination("queue:myqueue"));
exchange.getIn().setHeader("JMSReplyTo", "queue:myqueue");
Thanks,
Jim
On 5/23/2011 5:21 PM, Willem Jiang wrote:
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