Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 78541 invoked from network); 30 May 2006 12:24:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 May 2006 12:24:50 -0000 Received: (qmail 88531 invoked by uid 500); 30 May 2006 12:24:49 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 88508 invoked by uid 500); 30 May 2006 12:24:49 -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 88499 invoked by uid 99); 30 May 2006 12:24:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 05:24:49 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of james.strachan@gmail.com designates 66.249.92.168 as permitted sender) Received: from [66.249.92.168] (HELO ug-out-1314.google.com) (66.249.92.168) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 05:24:48 -0700 Received: by ug-out-1314.google.com with SMTP id m3so483672uge for ; Tue, 30 May 2006 05:24:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=d4QiSprf8D92kGqrYEHv31/yyFcmeawTg2p1phaBYn5LXV/+xZeSod1nN//4o0eGMVnnCCrFeX+Cy69xyo/9gxcAemhhb+AwZaEsnpRyU61Uidbrc7+OBefN9YqMQYnZ3GmXXBgbb7If/0TwqDBKYUaArJiXhUm1Zq9Fw/1/wGc= Received: by 10.67.108.27 with SMTP id k27mr2726372ugm; Tue, 30 May 2006 05:24:27 -0700 (PDT) Received: by 10.66.255.17 with HTTP; Tue, 30 May 2006 05:24:27 -0700 (PDT) Message-ID: Date: Tue, 30 May 2006 13:24:27 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: weblogic jndi.properties In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4622093.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N BTW are you even sure that ActiveMQ's JNDI provider is being found on the classpath? Maybe printing out the class used for the context might help On 5/30/06, James Strachan wrote: > If you are deployed in WebLogic then it might make more sense to use > WebLogic's JNDI provider to setup the administered objects? WebLogic > comes with a UI for setting up the JNDI context for a WAR/EAR > > On 5/30/06, sL07 wrote: > > > > hi all, > > > > trying to get my weblogic servlet to looking up an ActiveMQ queue that is > > specfiied in the jndi.properties. > > > > However the a javax.naming.NameNotFoundException: is thrown when looking up > > my connection factory. I have used all types of name prefix's with and > > without the java:comp/env. It just seems that my jndi.properties is not > > being read. > > > > -------------code that throws--------------------------- > > InitialContext ctx = new InitialContext(); > > QueueConnectionFactory qcf = > > (QueueConnectionFactory)ctx.lookup("java:comp/env/FirePayQueueConnectionFactory"); > > QueueConnection connection = qcf.createQueueConnection(); > > > > Queue queue = (Queue)ctx.lookup("java:comp/env/FirePayQueue") > > > > ----------------------------------------------------- > > > > i have read the jndi tutorial at http://activemq.org/site/jndi-support.html > > but i can't get this weblogic junk to work. > > > > The application is deployed as a war. > > The jndi.properties is in the web-ing/classes > > > > The jndi.properties is below > > > > ------------------------------------------------- > > java.naming.factory.initial = > > org.activemq.jndi.ActiveMQInitialContextFactory > > > > # use the following property to configure the default connector > > #java.naming.provider.url = tcp://localhost:61616 > > java.naming.provider.url = vm://localhost > > # use the following property to embed a broker inside this JVM > > #useEmbeddedBroker = true > > > > # use the following property to specify a class path resource or URL > > # used to configure an embedded broker using the XML configuration file > > #brokerXmlConfig = file:src/conf/sample-conf/default.xml > > > > # use the following property to specify the JNDI name the connection > > factory > > # should appear as. > > connectionFactoryNames = FirePayQueueConnectionFactory > > > > # register some queues in JNDI using the form > > # queue.[jndiName] = [physicalName] > > queue.FirePayQueue = nebo.FirePayQueue > > ------------------------------------------------- > > > > any help is most appreciated. > > > > -lp > > -- > > View this message in context: http://www.nabble.com/weblogic+jndi.properties-t1703005.html#a4622093 > > Sent from the ActiveMQ - User forum at Nabble.com. > > > > > > > -- > > James > ------- > http://radio.weblogs.com/0112098/ > -- James ------- http://radio.weblogs.com/0112098/