activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <>
Subject Re: How to reprocess DLQ message in .NET C#?
Date Thu, 16 Jun 2011 20:09:58 GMT
On Thu, 2011-06-16 at 10:21 -0700, Scott wrote:
> 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);

That's really the only option from a .NET client using NMS point of
view.  I guess you could use something like IKVM to allow you client to
interact via JMX.  


Tim Bish
Twitter: tabish121

View raw message