From user-return-6785-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Thu Jun 14 08:02:46 2007 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 76761 invoked from network); 14 Jun 2007 08:02:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jun 2007 08:02:45 -0000 Received: (qmail 90137 invoked by uid 500); 14 Jun 2007 08:02:45 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 90119 invoked by uid 500); 14 Jun 2007 08:02:45 -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 90108 invoked by uid 99); 14 Jun 2007 08:02:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2007 01:02:45 -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 [69.147.95.77] (HELO smtp114.plus.mail.sp1.yahoo.com) (69.147.95.77) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 14 Jun 2007 01:02:39 -0700 Received: (qmail 30016 invoked from network); 14 Jun 2007 08:02:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=VKdKqr1eg7JyA3K1gNOheD55TT9x6sngz8qvhCGjyFrNTDDKocdpzk6/RkEIrUj+hF7Qifu0UD/oCCxU/LoY/AXcqLZJzco8sZ/eFQqEpYiCXJdXRf4wE5LlQruSCBfC73lZZ3hQCKRTuVzL/rRqdefCe5mZFun2SCVGD9V4i/A= ; Received: from unknown (HELO ?192.168.0.14?) (david_jencks@71.38.141.193 with plain) by smtp114.plus.mail.sp1.yahoo.com with SMTP; 14 Jun 2007 08:02:18 -0000 X-YMail-OSG: uxYAhusVM1m_CG9hMT7.lgUI1WdLWFbhlMSe_QJ5QpFVKMKC4ndUfCqepoM4gZqunj4V8.oIQXv9sJMYp6gjM6Bknugi0elgnCZYVbGlvi7ozPbDtA-- Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <11113427.post@talk.nabble.com> References: <11113134.post@talk.nabble.com> <11113427.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <8BA58DC7-4028-4468-BF10-877F5FDA8742@yahoo.com> Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: Unable to resolve resource reference on 3.0 with annotations Date: Thu, 14 Jun 2007 01:02:57 -0700 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org On Jun 13, 2007, at 8:58 PM, Avorcor wrote: > > Well, that sure did fix that in a hurry. Thank you. > > Now, if I may, one final question. Now that my session bean is > deployed, > aren't I supposed to be able to access it as web service through > EJB? If > so, what do I need to do to make that happen? sacrifice some chickens in the right order :-) ? You need to do something to indicate what the interface it's exposing as a web service is. There's a way to do this with annotations but I'm not sure exactly what it is. I'm also not sure if you have to provide a wsdl file or if it can be generated from the interface, nor how to specify the wsdl file location. Hopefully someone who knows will tell you more. thanks david jencks > > Thank you again. > > JP > > djencks wrote: >> >> You need a geronimo plan for your (ejb? ear? app) that includes the >> jms module you have deployed as a parent, otherwise the references >> won't be able to be resolved. >> >> Also we ignore the mappedName, you should specify the name and make >> sure it's the same as what's in the jms module plan. >> >> Hope this helps >> david jencks >> >> On Jun 13, 2007, at 8:27 PM, Avorcor wrote: >> >>> >>> Okay, I tried to find a similar situation as this on this forum and >>> on the >>> web, but have not had any luck. >>> >>> I am using Geroimo 2.0M5 >>> >>> I have deployed a new ActiveMQ Resource Adapter with 2 queues and 1 >>> topic. >>> The factory name is Factory1 >>> >>> I have a single session bean that publishes to a JMS queue. The >>> bean has >>> one method publishAsset(), which performs the publishing act to the >>> queue. >>> >>> This is a stateless session bean. >>> >>> it is declared with >>> @Stateless >>> @Remote( { AssetRecordRemote.class }) >>> >>> I have a connection factory object declared in my code: >>> >>> @Resource(mappedName = "java:/comp/env/jms/Factory1") >>> ConnectionFactory >>> connectionFactory; >>> >>> The package this is in is called com.avorcor.fm >>> The bean name is AssetSessionBean >>> >>> I jar this up with my remote interface and call >>> >>> deploy AssetSessionBean.jar >>> >>> I get an error deploying: >>> >>> Error: Unable to distribute AssetSessionBean.jar: >>> org.apache.geronimo.common.DeploymentException: Unable to >>> resolve >>> resource reference >>> com.avorcor.fm.AssetSessionBean/connectionFactory' >>> (Could not auto-map to resource. Try adding a resource-ref >>> mapping >>> to your Geronimo deployment plan. >>> >>> If I remove all references to JMS, this will deploy just fine. >>> Although, it >>> deploys in the default package instead of com.avorcor.fm . I would >>> like to >>> hear thoughts on this as well if anyone knows, but my primary >>> concern is for >>> trying to understand why Geronimo cannot find the resource >>> reference and >>> what I could try to correct this situation. >>> >>> Thank you. >>> >>> >>> -- >>> View this message in context: http://www.nabble.com/Unable-to- >>> resolve-resource-reference-on-3.0-with-annotations- >>> tf3919298s134.html#a11113134 >>> Sent from the Apache Geronimo - Users mailing list archive at >>> Nabble.com. >>> >> >> >> > > -- > View this message in context: http://www.nabble.com/Unable-to- > resolve-resource-reference-on-3.0-with-annotations- > tf3919298s134.html#a11113427 > Sent from the Apache Geronimo - Users mailing list archive at > Nabble.com. >