Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 72624 invoked from network); 11 Sep 2006 06:30:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Sep 2006 06:30:18 -0000 Received: (qmail 46848 invoked by uid 500); 11 Sep 2006 06:30:18 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 46828 invoked by uid 500); 11 Sep 2006 06:30:18 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 46817 invoked by uid 99); 11 Sep 2006 06:30:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Sep 2006 23:30:18 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Sep 2006 23:30:17 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GMfIq-0000Z8-Bm for activemq-users@geronimo.apache.org; Sun, 10 Sep 2006 23:29:57 -0700 Message-ID: <6241697.post@talk.nabble.com> Date: Sun, 10 Sep 2006 23:29:56 -0700 (PDT) From: wallace To: activemq-users@geronimo.apache.org Subject: ActiveMQConnectionFactory username/password question MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: wallace3000@yahoo.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I am using activemq 4.0 and running the examples. It seems no matter if I am running the topic/queue, persist/non-persistent, durable/non-durable. Username and password do not seem to matter. I changed the createConnection() function to two separate functions for producer and consumer protected Connection createConnection-rpoducer() throws JMSException, Exception { ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("producer-username", "producer-passwd", url); .......... protected Connection createConnection-consumer() throws JMSException, Exception { ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("consumer-username", "consumer-passwd", url); .......... Why does it seem like the example would run even if I use different username and password for producer and consumer? Thank you, -Wallace Wong -- View this message in context: http://www.nabble.com/ActiveMQConnectionFactory-username-password-question-tf2250509.html#a6241697 Sent from the ActiveMQ - User forum at Nabble.com.