You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2012/10/30 22:20:46 UTC

svn commit: r1403876 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/NetTxConnection.cs

Author: tabish
Date: Tue Oct 30 21:20:45 2012
New Revision: 1403876

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

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/NetTxConnection.cs

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/NetTxConnection.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/NetTxConnection.cs?rev=1403876&r1=1403875&r2=1403876&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/NetTxConnection.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/NetTxConnection.cs Tue Oct 30 21:20:45 2012
@@ -76,10 +76,10 @@ namespace Apache.NMS.ActiveMQ
             string[] parts = resId.Split(":-".ToCharArray());
 
             // We don't use the hostname here, just the remaining bits.
-            int a = Int32.Parse(parts[1]);
-            short b = Int16.Parse(parts[3]);
-            short c = Int16.Parse(parts[4]);
-            byte[] d = System.BitConverter.GetBytes(Int64.Parse(parts[2]));
+            int a = Int32.Parse(parts[parts.Length-4]);
+            short b = Int16.Parse(parts[parts.Length-2]);
+            short c = Int16.Parse(parts[parts.Length-1]);
+            byte[] d = System.BitConverter.GetBytes(Int64.Parse(parts[parts.Length-3]));
 
             return new Guid(a, b, c, d);
         }