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:16:08 UTC
svn commit: r1403873 -
/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/NetTxConnection.cs
Author: tabish
Date: Tue Oct 30 21:16:07 2012
New Revision: 1403873
URL: http://svn.apache.org/viewvc?rev=1403873&view=rev
Log:
fix for: https://issues.apache.org/jira/browse/AMQNET-399
Modified:
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/NetTxConnection.cs
Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/NetTxConnection.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/NetTxConnection.cs?rev=1403873&r1=1403872&r2=1403873&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/NetTxConnection.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/NetTxConnection.cs Tue Oct 30 21:16:07 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);
}