Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 8319 invoked from network); 9 Feb 2010 14:03:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Feb 2010 14:03:56 -0000 Received: (qmail 22035 invoked by uid 500); 9 Feb 2010 14:03:56 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 21998 invoked by uid 500); 9 Feb 2010 14:03:56 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 21979 invoked by uid 99); 9 Feb 2010 14:03:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2010 14:03:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2010 14:03:54 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EAFC7234C4A9 for ; Tue, 9 Feb 2010 06:03:32 -0800 (PST) Message-ID: <631671100.14761265724212961.JavaMail.jira@brutus.apache.org> Date: Tue, 9 Feb 2010 14:03:32 +0000 (UTC) From: =?UTF-8?Q?Andreas_L=C3=A4ndle_=28JIRA=29?= To: dev@activemq.apache.org Subject: [jira] Commented: (AMQNET-231) STOMP: ConnectionFactory.CreateConnection(string userName, string password) ignores it's parameters. In-Reply-To: <366547493.14441265722052871.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQNET-231?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 57461#action_57461 ]=20 Andreas L=C3=A4ndle commented on AMQNET-231: --------------------------------------- var connectUri =3D new Uri("stomp:tcp://someserver:61613"); // the following code illustrates the problem var factory =3D NMSConnectionFactory.CreateConnectionFactory(connectU= ri); this.connection =3D factory.CreateConnection("user", "password"); // = <-- parameters are ignored! // workaround var factory =3D new Apache.NMS.Stomp.ConnectionFactory(connectUri); factory.UserName =3D "user"; factory.Password =3D "password"; this.connection =3D 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 passwor= d) 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=C3=A4ndle > Assignee: Timothy Bish > > ConnectionFactory.CreateConnection(string userName, string password) igno= res it's parameters. > This is very uncomfortable because if want to use IConnectionFactory crea= ted by NMSConnectionFactory.CreateConnectionFactory(uri) i couldn't use Sto= mp 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). --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.