Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 472 invoked from network); 3 Jul 2007 09:13:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jul 2007 09:13:59 -0000 Received: (qmail 48163 invoked by uid 500); 3 Jul 2007 09:13:59 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 48131 invoked by uid 500); 3 Jul 2007 09:13:58 -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 48116 invoked by uid 99); 3 Jul 2007 09:13:58 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 02:13:58 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 02:13:54 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1I5eRy-0006Ii-7c for user@geronimo.apache.org; Tue, 03 Jul 2007 02:13:34 -0700 Message-ID: <11408619.post@talk.nabble.com> Date: Tue, 3 Jul 2007 02:13:34 -0700 (PDT) From: Xiao-fei Song To: user@geronimo.apache.org Subject: Re: jndi-name and sub-context In-Reply-To: <5eb405c70707020825j45975a6by2cc3cc6f16a3d6b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: xfsong_chris@yahoo.com References: <11390723.post@talk.nabble.com> <5eb405c70707020825j45975a6by2cc3cc6f16a3d6b@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Jarek, Thanks for your reply. And I have decided to use application client to continue my evaluation. I'll file a bug on the jndi-name issue. Thanks, Chris. Jarek Gawor-2 wrote: > > Hi, > > Comments inline. > > On 7/2/07, Xiao-fei Song wrote: >> >> Hi all, >> >> I am just working on geronimo v2 for a very simple ejb client application >> but I got stuck on the jndi lookup part. I got 2 questions basically >> because >> my code runs well on geronimo 1.x: >> >> 1. jndi-name specified in openejb-jar.xml does not work. Is this being >> ignored or a geronimo regression? > > Please open a bug and hopefully somebody will address it. > >> 2. when I try using deployment id as "MyEjbModule.jar/MySessionBean", the >> look up returned subcontext instead of the home object, and I have a >> ClassCastException while narrowing the object ref returned. The object's >> class type is org.apache.openejb.client.JNDIContext instead of the home >> interface. > > I believe, the default JNDI name in v2 is of the following format: > > {deploymentId}/{interfaceClass} > > where {deploymentId} is: > > {moduleId}/{ejbName} > > So you want to lookup something like: > MyEjbModule.jar/MySessionBean/my.package.SessionRemote > > See > http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxb-tests/jaxb-ejb/src/test/java/org/apache/geronimo/testsuite/testset/EJBJAXBTest.java?view=markup > for an example. > > Hope this helps, > Jarek > > -- View this message in context: http://www.nabble.com/jndi-name-and-sub-context-tf4011031s134.html#a11408619 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.