From user-return-5785-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Thu Feb 01 14:15:40 2007 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 47497 invoked from network); 1 Feb 2007 14:15:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2007 14:15:39 -0000 Received: (qmail 34886 invoked by uid 500); 1 Feb 2007 14:15:43 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 34681 invoked by uid 500); 1 Feb 2007 14:15:42 -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 34670 invoked by uid 99); 1 Feb 2007 14:15:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Feb 2007 06:15:42 -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.175 as permitted sender) Received: from [66.249.92.175] (HELO ug-out-1314.google.com) (66.249.92.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Feb 2007 06:15:33 -0800 Received: by ug-out-1314.google.com with SMTP id m2so625363ugc for ; Thu, 01 Feb 2007 06:15:12 -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=eHRwdTL9isRKCiRBkVlM3BDzCFve2OFGGv0ozvDmMfotoglPml+l0/xunL40AnVWXSpEsLEk0XTXHiGARPv+pfSLuLrKdwozvmkyJhR6mjmbGAwm56O74raCjTN6AfhzvT9vD5BveeHpg84Av1lHojOdaAOLhKsrdYb92eqJf1w= Received: by 10.82.152.16 with SMTP id z16mr685841bud.1170339311787; Thu, 01 Feb 2007 06:15:11 -0800 (PST) Received: by 10.82.120.17 with HTTP; Thu, 1 Feb 2007 06:15:11 -0800 (PST) Message-ID: <74e15baa0702010615x12246de7v8a777d018a264fe4@mail.gmail.com> Date: Thu, 1 Feb 2007 09:15:11 -0500 From: "Aaron Mulder" Sender: ammulder@gmail.com To: user@geronimo.apache.org Subject: Re: ActiveMQ Reference/Dependencies In-Reply-To: <300386.77707.qm@web30812.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: <300386.77707.qm@web30812.mail.mud.yahoo.com> X-Google-Sender-Auth: 39eb92496879afe1 X-Virus-Checked: Checked by ClamAV on apache.org OK, well, I'm assuming you created the queue in question? If so, you need to also add a dependency on the module that the queue is in. Again, you can find the name of that module in the console or with the command-line deploy tool ('list-modules'). Thanks, Aaron On 2/1/07, John wrote: > I am now using activemq instead of activemq-broker. > > Does it matter what JVM I use? I was originally using Java 5, but have reverted to the latest Java 1.4.2 release even though it seems to me I should be able to use newer JVMs. > > The result of these two changes is that it is no longer complaining about the connection factory, but is giving me the very same error regarding the queue: > > > Deployment failed: > Unable to resolve resource reference > 'jms/myQueue' (Could not find resource 'SendReceiveQueue'. Perhaps it > has not yet been configured, or your application does not have a > dependency declared for that resource module?) > > I guess I was wrong in my assessment that if I got the connection factory working, the queue would follow. :-) I have tried, at the suggestion of some web sites and messages on the list, to use and instead of and for the queue. However, doing that just gives me an error at deployment time that I should use a . > > Here is my current geronimo-web.xml: > > > > > > default > SimpleMDBWeb > 1.0 > car > > > > > activemq > car > > > > > /SimpleMDBWeb > > > jms/myConnFactoryRef > DefaultActiveMQConnectionFactory > > > > jms/myQueue > SendReceiveQueue > > > > > I am following the other thread regarding a similar matter closely. > > Thanks! > John > > ----- Original Message ---- > From: Aaron Mulder > To: user@geronimo.apache.org > Sent: Wednesday, January 31, 2007 4:45:38 PM > Subject: Re: ActiveMQ Reference/Dependencies > > 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 > > > > > > > > > ____________________________________________________________________________________ > TV dinner still cooling? > Check out "Tonight's Picks" on Yahoo! TV. > http://tv.yahoo.com/ >