Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 18550 invoked from network); 4 Jun 2007 13:02:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jun 2007 13:02:30 -0000 Received: (qmail 99667 invoked by uid 500); 4 Jun 2007 13:02:32 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 99647 invoked by uid 500); 4 Jun 2007 13:02:32 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 99638 invoked by uid 99); 4 Jun 2007 13:02:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2007 06:02:32 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2007 06:02:27 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1HvCCF-0006sx-47 for users@activemq.apache.org; Mon, 04 Jun 2007 06:02:07 -0700 Message-ID: <10949357.post@talk.nabble.com> Date: Mon, 4 Jun 2007 06:02:07 -0700 (PDT) From: QJack To: users@activemq.apache.org Subject: Receiver using jndi.properties, Sender not. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jandrews@pathfire.com X-Virus-Checked: Checked by ClamAV on apache.org I have a Receiver that is using jndi.properties in the classpath and the InitialContext is being created with the default contructor. InitialContext(). I am also running the broker service. When I run the Receiver it appears that it is trying to create its own service instead of binding to the existing broker. I think this because I get a JMX connector "NameAlreadyBoundException". I then have a Sender that is creating an InitialContext with the EXACT same properties as the jndi.properties file using InitialContext(props) and the jndi.properties is NOT nor should be in it's classpath. Yet, my receiver never receives the messages and what's more is that when using JConsole to monitor my Topics, the receiver's topic never shows. The JNDI tutorial doesn't mention this. Also, I've noticed that if I use the jndi.properties in the classpath for both Receiver and Sender, the same thing happens, I don't successfully send messages. Any clues? Thanks, Jeff -- View this message in context: http://www.nabble.com/Receiver-using-jndi.properties%2C-Sender-not.-tf3865081s2354.html#a10949357 Sent from the ActiveMQ - User mailing list archive at Nabble.com.