Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 82519 invoked from network); 31 Jan 2007 21:46:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jan 2007 21:46:05 -0000 Received: (qmail 94964 invoked by uid 500); 31 Jan 2007 21:46:11 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 94543 invoked by uid 500); 31 Jan 2007 21:46:09 -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 94532 invoked by uid 99); 31 Jan 2007 21:46:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 13:46:09 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ammulder@gmail.com designates 66.249.92.172 as permitted sender) Received: from [66.249.92.172] (HELO ug-out-1314.google.com) (66.249.92.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 13:46:00 -0800 Received: by ug-out-1314.google.com with SMTP id m2so387946ugc for ; Wed, 31 Jan 2007 13:45:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=YI4M3uhF6cClD1nNXntRl6JRcD85IzlV2Uu6OMtabd1j692se45Pa9wi/l14EDWoN5Ra66PEXjr/+/dbm6B6E0nxwtVHoQjpX0EhqOhQqWNbqn8bhyJY9eOFTdoWnxGHmHyQGmOLLjwpVmjCIemsePb0S8q4x6S9ZhibqutuE+U= Received: by 10.82.111.8 with SMTP id j8mr399036buc.1170279938243; Wed, 31 Jan 2007 13:45:38 -0800 (PST) Received: by 10.82.120.17 with HTTP; Wed, 31 Jan 2007 13:45:38 -0800 (PST) Message-ID: <74e15baa0701311345i4f3ebe64s7eea7aa556faf26e@mail.gmail.com> Date: Wed, 31 Jan 2007 16:45:38 -0500 From: "Aaron Mulder" Sender: ammulder@gmail.com To: user@geronimo.apache.org Subject: Re: ActiveMQ Reference/Dependencies In-Reply-To: <20070131212708.78678.qmail@web30807.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070131212708.78678.qmail@web30807.mail.mud.yahoo.com> X-Google-Sender-Auth: 3ab2d3edf517f624 X-Virus-Checked: Checked by ClamAV on apache.org I think your dependency should be on activemq not activemq-broker. If I remember right, the activemq-broker module just configures the core ActiveMQ broker and the activemq module has the basic connection factories and stuff. Thanks, Aaron On 1/31/07, John wrote: > I have seen similar questions posted here which have helped me along to some extent, but I've hit a dead end. > > > > I am trying to deploy a simple servlet which posts a message to a JMS queue. > > > > For the sake of simplicity in this message, I am only going to reference the connection factory, as I assume once I figure out how to map that resource properly, I can figure out the queue. > > > > The code does this: > > > > ConnectionFactory qConnectionFactory = (ConnectionFactory)context.lookup("java:comp/env/jms/myConnFactoryRef"); > > > > My web.xml has this: > > > > > > jms/myConnFactoryRef > > javax.jms.ConnectionFactory > > Container > > > > > > My FULL geronimo-web.xml is as follows: > > > > > > > > > > > > default > > SimpleMDBWeb > > 1.0 > > car > > > > > > > > > > geronimo > > activemq-broker > > 1.1.1 > > car > > > > > > > > > > > > /SimpleMDBWeb > > > > > > jms/myConnFactoryRef > > DefaultActiveMQConnectionFactory > > > > > > > > jms/myQueue > > SendReceiveQueue > > > > > > > > > > > > The error I am getting is: > > > > "Unable to resolve resource reference 'jms/myConnFactoryRef' (Could not find resource 'DefaultActiveMQConnectionFactory'. Perhaps it has not yet been configured, or your application does not have a dependency declared for that resource module?)" > > > > It would seem from the error that the resource reference is properly linked to the resource I want to use, but I am having a dependency issue. I have tried using "activemq" instead of "activemq-broker." I have tried using both. I have tried creating my own JMS resource in Geronimo and referencing that resource as a dependency instead of, and in addition to activemq and activemq-broker. No matter what I do, I get the above error. > > > > All the web pages and sample geronimo-web.xml files I have found seem to support my usage above, but I am obviously still doing something wrong. > > > I am using Geronimo 1.1.1. > > > > I would appreciate any pointer in the right direction. > > > > Thanks! > > John > > > > > > > > > ____________________________________________________________________________________ > Expecting? Get great news right away with email Auto-Check. > Try the Yahoo! Mail Beta. > http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html >