Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 17357 invoked from network); 31 Oct 2008 10:30:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2008 10:30:37 -0000 Received: (qmail 70050 invoked by uid 500); 31 Oct 2008 10:30:40 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 70025 invoked by uid 500); 31 Oct 2008 10:30:39 -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 70014 invoked by uid 99); 31 Oct 2008 10:30:39 -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 03:30:39 -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 10:29:23 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KvrGV-0005Ni-Ef for user@geronimo.apache.org; Fri, 31 Oct 2008 03:30:03 -0700 Message-ID: <20263300.post@talk.nabble.com> Date: Fri, 31 Oct 2008 03:30:03 -0700 (PDT) From: jsmch To: user@geronimo.apache.org Subject: Re: How may I access ConnectionFactory/Queues etc. with JNDI-lookup? In-Reply-To: <0A3C2408-02A8-4B27-992D-0CB3FD0991CD@yahoo.com> 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> X-Virus-Checked: Checked by ClamAV on apache.org Hi and thank you for the reply again. Due to your answer i tried to getting familiar in using jdni.properties in the geronimo-environment. I=C2=B4ve given 2 Topics to be accessed from the NON-EE-Application. They a= re already installed as JMS Resources in resourcesgroup console.jms/MyResourceGroup/1.0/rar (checked from geronimo console). The Topics are named UpdateTopic and ChatTopic. The jndi.properties looks like this: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D java.naming.factory.initial =3D org.apache.activemq.jndi.ActiveMQInitialContextFactory java.naming.provider.url =3D vm://localhost topic.ChatTopic =3D ChatTopic topic.UpdateTopic =3D UpdateTopic=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I tried it by push the properties-file to the META-INF-directory but this didn=C2=B4t work. The result of available jndi-entries is just what i always get (even when server is NOT running): dynamicQueues, dynamicTopics, TopicConnectionFactory, ConnectionFactory, QueueConnectionFactory Ok - i didn=C2=B4t wondered that putting to META-INF didn=C2=B4t work becau= se the (very short) tutorial tells me to put the properties-file to my classpath. Geronimo Console (Java System Info) tells me the following about classpath: java.class.path =09 =20 C:\FH\Dev4\Geronimo\geronimo-tomcat6-javaee5-2.1.3\bin\server.jar =20 C:/FH/Dev4/Geronimo/geronimo-tomcat6-javaee5-2.1.3/bin/jpa.jar =3D=3D> there are more than those 2 jars in that directory. How may i add jndi.properties to the classpath now - or am i thinking wrong in any way?.= =20 At least I=C2=B4m not really sure that my Context will really contact the server-side (because - as i already told - the jndi-entries where also available when geronimo was NOT running): =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Properties p2; p2.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.activemq.jndi.ActiveMQInitialContextFactory"); p2.put("brokerURL", "tcp://localhost:61616"); InitialContext ctx =3D new InitialContext(p2); djencks wrote: >=20 > Hi jsmch, >=20 > As I mentioned in a reply to Doug Reeder I think you have to use the =20 > activemq jndi context documented here:=20 > http://activemq.apache.org/jndi-support.html=20 > for non ee clients. >=20 > Hope this helps > david jencks >=20 > On Oct 30, 2008, at 10:01 AM, jsmch wrote: >=20 >=20 --=20 View this message in context: http://www.nabble.com/How-may-I-access-Connec= tionFactory-Queues-etc.-with-JNDI-lookup--tp20209014s134p20263300.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.