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 2010/07/19 21:09:50 UTC

svn commit: r965589 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs

Author: tabish
Date: Mon Jul 19 19:09:50 2010
New Revision: 965589

URL: http://svn.apache.org/viewvc?rev=965589&view=rev
Log:
* Connection.cs:   Fix an error when running unit tests and the host env var is set to an IP address.

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

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs?rev=965589&r1=965588&r2=965589&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs Mon Jul 19 19:09:50 2010
@@ -17,6 +17,7 @@
 
 using System;
 using System.Collections;
+using System.Collections.Specialized;
 using System.Threading;
 using Apache.NMS.ActiveMQ.Commands;
 using Apache.NMS.ActiveMQ.Transport;
@@ -404,9 +405,9 @@ namespace Apache.NMS.ActiveMQ
             SyncRequest(info, this.RequestTimeout);
             Session session = new Session(this, info, sessionAcknowledgementMode, this.dispatchAsync);
 
-            // Set properties on session using parameters prefixed with "session."
-            URISupport.CompositeData c = URISupport.ParseComposite(this.brokerUri);
-            URISupport.SetProperties(session, c.Parameters, "session.");
+            // Set propertieDs on session using parameters prefixed with "session."
+			StringDictionary options = URISupport.ParseQuery(this.brokerUri.Query);
+            URISupport.SetProperties(session, options, "session.");
 
             if(IsStarted)
             {