You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Andreas Ländle (JIRA)" <ji...@apache.org> on 2010/02/09 15:03:32 UTC
[jira] Issue Comment Edited: (AMQNET-231) STOMP:
ConnectionFactory.CreateConnection(string userName, string password)
ignores it's parameters.
[ https://issues.apache.org/activemq/browse/AMQNET-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57461#action_57461 ]
Andreas Ländle edited comment on AMQNET-231 at 2/9/10 2:03 PM:
---------------------------------------------------------------
var connectUri = new Uri("stomp:tcp://someserver:61613");
// the following code illustrates the problem
var factory = NMSConnectionFactory.CreateConnectionFactory(connectUri);
this.connection = factory.CreateConnection("user", "password"); // <-- parameters are ignored!
// workaround
var factory = new Apache.NMS.Stomp.ConnectionFactory(connectUri);
factory.UserName = "user";
factory.Password = "password";
this.connection = factory.CreateConnection("ignored_user", "ignored_password"); // <-- parameters are also ignored - the username and password set on the factory the two lines before are used.
I hope this will help you to reproduce the issue. Please let me know if you need further information/assistance.
was (Author: alsoloplan):
var connectUri = new Uri("stomp:tcp://someserver:61613");
// the following code illustrates the problem
var factory = NMSConnectionFactory.CreateConnectionFactory(connectUri);
this.connection = factory.CreateConnection("user", "password"); // <-- parameters are ignored!
// workaround
var factory = new Apache.NMS.Stomp.ConnectionFactory(connectUri);
factory.UserName = "user";
factory.Password = "password";
this.connection = factory.CreateConnection("ignored_user", "ignored_password"); // <-- parameters are also ignored - the username and password set on the factory the two lines before are used.
> STOMP: ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.
> ----------------------------------------------------------------------------------------------------
>
> Key: AMQNET-231
> URL: https://issues.apache.org/activemq/browse/AMQNET-231
> Project: ActiveMQ .Net
> Issue Type: Bug
> Components: Stomp
> Affects Versions: 1.2.0
> Reporter: Andreas Ländle
> Assignee: Timothy Bish
>
> ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.
> This is very uncomfortable because if want to use IConnectionFactory created by NMSConnectionFactory.CreateConnectionFactory(uri) i couldn't use Stomp with username/password. As a workaround i must add the concrete factory which leads to a redundant specification of the used protocol (the Uri and the Factory 'knows' the protocol).
> Please let me know if i was unclear or if you need more information (and excuse my bad English).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.