activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgo...@apache.org
Subject svn commit: r901443 - in /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk: nmsprovider-test.config src/main/csharp/ConnectionFactory.cs
Date Wed, 20 Jan 2010 23:46:59 GMT
Author: jgomes
Date: Wed Jan 20 23:46:59 2010
New Revision: 901443

URL: http://svn.apache.org/viewvc?rev=901443&view=rev
Log:
Fix setting username and password when creating a connection.
Fixes [AMQNET-228]. (See https://issues.apache.org/activemq/browse/AMQNET-228)

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nmsprovider-test.config
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/ConnectionFactory.cs

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nmsprovider-test.config
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nmsprovider-test.config?rev=901443&r1=901442&r2=901443&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nmsprovider-test.config (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nmsprovider-test.config Wed Jan 20
23:46:59 2010
@@ -16,7 +16,10 @@
 * limitations under the License.
 -->
 <configuration>
-	<defaultURI value="activemq:tcp://${activemqhost}:61616?connection.AsyncClose=false"/>
+	<defaultURI value="activemq:tcp://${activemqhost}:61616?connection.AsyncClose=false">
+		<userName value="system"/>
+		<passWord value="manager"/>
+	</defaultURI>
 
 	<maxInactivityDurationURI value="activemq:tcp://${activemqhost}:61616?wireFormat.MaxInactivityDuration=30000&amp;connection.AsyncClose=false"/>
 

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/ConnectionFactory.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/ConnectionFactory.cs?rev=901443&r1=901442&r2=901443&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/ConnectionFactory.cs
(original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/ConnectionFactory.cs
Wed Jan 20 23:46:59 2010
@@ -116,8 +116,8 @@
     
                 ConfigureConnection(connection);
     
-                connection.UserName = this.connectionUserName;
-                connection.Password = this.connectionPassword;
+                connection.UserName = userName;
+                connection.Password = password;
     
                 if(this.clientId != null)
                 {



Mime
View raw message