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.  

Regards

-- 
Tim Bish
------------
FuseSource
Email: tim.b...@fusesource.com
Web: http://fusesource.com
Twitter: tabish121
Blog: http://timbish.blogspot.com/



Reply via email to