Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 24760 invoked from network); 13 Jun 2007 17:21:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jun 2007 17:21:55 -0000 Received: (qmail 89134 invoked by uid 500); 13 Jun 2007 17:21:55 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 89111 invoked by uid 500); 13 Jun 2007 17:21:55 -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 89100 invoked by uid 99); 13 Jun 2007 17:21:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 10:21:55 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [128.163.184.22] (HELO nm.uky.edu) (128.163.184.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 10:21:51 -0700 Received: from [9.27.41.171] vhnguy2 [129.33.49.251] by nm.uky.edu with NetMail SMTP Agent $Revision: 1.6 $ on Novell NetWare via secured & encrypted transport (TLS); Wed, 13 Jun 2007 13:21:30 -0400 Message-ID: <4670279A.8070802@uky.edu> Date: Wed, 13 Jun 2007 13:21:30 -0400 From: Viet Hung Nguyen User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: user@geronimo.apache.org Subject: MDB trouble with references Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I am trying to get a simple MDB to work using annotations. However, when I deploy it into Geronimo 2.0, I get the following error. This is with the ConnectionFactory and Queue set up in Geronimo already: Error: Unable to distribute order-ear-2.0-SNAPSHOT.ear: Unable to resolve resource reference 'jms/CommonConnectionFactory' (Could not auto-map to resource. Try adding a resource-ref mapping to your Geronimo deployment plan. My deployment plan for the ConnectionFactory and Queues looks like this: org.apache.geronimo.samples jms-resources 1.2 rar org.apache.geronimo.configs activemq-broker car CommonConnectionFactory geronimo geronimo DefaultWorkManager javax.jms.QueueConnectionFactory CommonConnectionFactory javax.jms.Queue org.activemq.message.ActiveMQQueue OrderQueue OrderQueue ConsignmentQueue ConsignmentQueue javax.jms.Topic org.activemq.message.ActiveMQTopic I have the MDB with the following annotation @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"), @ActivationConfigProperty(propertyName="destination", propertyValue="jms/OrderQueue") }) I have a Servlet with the following annotated Queue and ConnectionFactory: @Resource(mappedName="jms/OrderQueue") private static Queue receivingQueue; @Resource(mappedName="jms/CommonConnectionFactory") private static QueueConnectionFactory factory; I have the geronimo-web.xml file which has the following: jms/CommonConnectionFactory CommonConnectionFactory jms/OrderQueue OrderQueue However, I think that these references are unnecessary when the annotations are present. But I am new to EJBs in general so I am not sure. And I also have a web.xml with the following references too jms/CommonConnectionFactory javax.jms.QueueConnectionFactory Container Shareable jms/OrderQueue javax.jms.Queue Produces OrderQueue Am I missing something? I would appreciate any type of feedback. Thanks, Viet Nguyen