activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott <liuheb...@hotmail.com>
Subject Re: How to reprocess DLQ message in .NET C#?
Date Thu, 16 Jun 2011 17:21:36 GMT

Hi Tim, how can i republish the message using standard NMS APIs?

Is there any NMS API can move message from DLQ to Original Destination
instead of creating a new message?

The following code is i use to reply message from DLQ, but it always create
a new message instead of using old message.

IMessageConsumer consumer = session.CreateConsumer( new
Apache.NMS.ActiveMQ.Commands.ActiveMQQueue("ActiveMQ.DLQ"));
IMessageProducer producer =
session.CreateProducer(((ActiveMQMessage)message).OriginalDestination);
producer.Send(message);

--
View this message in context: http://activemq.2283324.n4.nabble.com/How-to-reprocess-DLQ-message-in-NET-C-tp3598457p3603105.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message