activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Ländle (JIRA) <jira+amq...@apache.org>
Subject [jira] Commented: (AMQNET-231) STOMP: ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters.
Date Tue, 09 Feb 2010 14:03:32 GMT

    [ https://issues.apache.org/activemq/browse/AMQNET-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57461#action_57461
] 

Andreas Ländle commented on AMQNET-231:
---------------------------------------

      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.


Mime
View raw message