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.

Reply via email to