You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jg...@apache.org on 2010/01/21 00:46:59 UTC
svn commit: r901443 - in /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk:
nmsprovider-test.config src/main/csharp/ConnectionFactory.cs
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&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)
{