activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1298611 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageProducer.cs
Date Thu, 08 Mar 2012 22:08:09 GMT
Author: tabish
Date: Thu Mar  8 22:08:08 2012
New Revision: 1298611

URL: http://svn.apache.org/viewvc?rev=1298611&view=rev
Log:
fix for: https://issues.apache.org/jira/browse/AMQNET-373

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageProducer.cs

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageProducer.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageProducer.cs?rev=1298611&r1=1298610&r2=1298611&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageProducer.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageProducer.cs
Thu Mar  8 22:08:08 2012
@@ -231,6 +231,13 @@ namespace Apache.NMS.ActiveMQ
 			id.ProducerId = info.ProducerId;
 			id.ProducerSequenceId = Interlocked.Increment(ref this.producerSequenceId);
 			activeMessage.MessageId = id;
+			
+			// Ensure that the source message contains the NMSMessageId of the transformed
+			// message for correlation purposes.
+			if (!Object.ReferenceEquals(message, activeMessage))
+			{
+				message.NMSMessageId = activeMessage.NMSMessageId;				
+			}
 
 			if(!disableMessageTimestamp)
 			{



Mime
View raw message