Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 89388 invoked from network); 31 Oct 2008 16:27:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2008 16:27:54 -0000 Received: (qmail 78089 invoked by uid 500); 31 Oct 2008 16:27:58 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 78067 invoked by uid 500); 31 Oct 2008 16:27:58 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 78056 invoked by uid 99); 31 Oct 2008 16:27:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Oct 2008 09:27:58 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.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; Fri, 31 Oct 2008 16:26:42 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KvwqI-000456-AY for user@geronimo.apache.org; Fri, 31 Oct 2008 09:27:22 -0700 Message-ID: <20269382.post@talk.nabble.com> Date: Fri, 31 Oct 2008 09:27:22 -0700 (PDT) From: jsmch To: user@geronimo.apache.org Subject: Re: How may I access ConnectionFactory/Queues etc. with JNDI-lookup? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: jsmch@web.de References: <20209014.post@talk.nabble.com> <20251087.post@talk.nabble.com> <0A3C2408-02A8-4B27-992D-0CB3FD0991CD@yahoo.com> <20263300.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Ah alright. Now it works. I put the jndi.properties to the src-folder (where my self-coded java-packages are located...). With the following configuration (jndi.properties) it=C2=B4s possible at la= st: ----------------------------------- java.naming.factory.initial =3D org.apache.activemq.jndi.ActiveMQInitialContextFactory java.naming.provider.url =3D tcp://localhost:61616=20 topic.ChatTopic =3D ChatTopic topic.UpdateTopic =3D UpdateTopic ----------------------------------- The result (of ctx.list) is: =3D=3D=3D=3D=3D=3D=3D=3D=3D ChatTopic, dynamicQueues, dynamicTopics, TopicConnectionFactory, ConnectionFactory, UpdateTopic, QueueConnectionFactory, =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D thanks :handshake: djencks wrote: >=20 > I'm confused about which vm you are trying to use the amq jndi in. =20 > You should be putting the jndi.properties file in the classpath of =20 > your non-ee client application. I would not advise trying to use the =20 > amq properties based jndi inside geronimo. >=20 > java.naming.provider.url =3D vm://localhost >=20 > means that you are trying to connect to a broker in the same vm (in-vm = =20 > transport) >=20 > For a broker running in geronimo you want something like > java.naming.provider.url =3D tcp://hostname:61616 >=20 > hope this helps > david jencks >=20 >=20 --=20 View this message in context: http://www.nabble.com/How-may-I-access-Connec= tionFactory-Queues-etc.-with-JNDI-lookup--tp20209014s134p20269382.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.