activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1403876 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/NetTxConnection.cs
Date Tue, 30 Oct 2012 21:20:46 GMT
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);
         }



Mime
View raw message