activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r966051 - in /activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp: Connection.cs Session.cs
Date Tue, 20 Jul 2010 23:19:23 GMT
Author: tabish
Date: Tue Jul 20 23:19:22 2010
New Revision: 966051

URL: http://svn.apache.org/viewvc?rev=966051&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQNET-264

Use new URISupport methods to preserve the options when non-destructive extraction is what
we want.

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

Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Connection.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Connection.cs?rev=966051&r1=966050&r2=966051&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Connection.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Connection.cs Tue Jul
20 23:19:22 2010
@@ -339,7 +339,8 @@ namespace Apache.NMS.Stomp
 
             // Set properties on session using parameters prefixed with "session."
             StringDictionary options = URISupport.ParseQuery(this.brokerUri.Query);
-            URISupport.SetProperties(session, options, "session.");
+            options = URISupport.GetProperties(options, "session.");
+            URISupport.SetProperties(session, options);
 
             if(IsStarted)
             {

Modified: activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Session.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Session.cs?rev=966051&r1=966050&r2=966051&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Session.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.Stomp/trunk/src/main/csharp/Session.cs Tue Jul 20
23:19:22 2010
@@ -17,6 +17,7 @@
 
 using System;
 using System.Collections;
+using System.Collections.Specialized;
 using System.Threading;
 using Apache.NMS.Stomp.Commands;
 using Apache.NMS.Stomp.Util;
@@ -668,7 +669,8 @@ namespace Apache.NMS.Stomp
             Destination amqDestination = destination as Destination;
             if(amqDestination != null && amqDestination.Options != null)
             {
-                URISupport.SetProperties(answer, amqDestination.Options, "consumer.");
+                StringDictionary options = URISupport.GetProperties(amqDestination.Options,
"consumer.");
+                URISupport.SetProperties(answer, options);
             }
 
             return answer;
@@ -689,7 +691,8 @@ namespace Apache.NMS.Stomp
             Destination amqDestination = destination as Destination;
             if(amqDestination != null && amqDestination.Options != null)
             {
-                URISupport.SetProperties(answer, amqDestination.Options, "producer.");
+                StringDictionary options = URISupport.GetProperties(amqDestination.Options,
"producer.");
+                URISupport.SetProperties(answer, options);
             }
 
             return answer;



Mime
View raw message