Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 91255 invoked from network); 22 Sep 2008 23:17:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Sep 2008 23:17:14 -0000 Received: (qmail 20594 invoked by uid 500); 22 Sep 2008 23:17:10 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 20573 invoked by uid 500); 22 Sep 2008 23:17:10 -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 20562 invoked by uid 99); 22 Sep 2008 23:17:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Sep 2008 16:17:10 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.61] (HELO smtp106.prem.mail.sp1.yahoo.com) (98.136.44.61) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 22 Sep 2008 23:16:10 +0000 Received: (qmail 11782 invoked from network); 22 Sep 2008 23:15:43 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=0fwpDLdXHy+SXlzfTZDy7XJCBQmZKa+baa+hyIkY5YHbrk7/GVuoe05/4TF5jSpvacVxU8ddaY3V5AdjGenCpNExqx6Uu8zsNEWqnBHrnWeUTP/xLeTYNVyUBSEKfWv0sP1DAivRhxRKWpWZ1ggp/05tJZMkYzUFoyTUz50m/HY= ; Received: from unknown (HELO ?10.11.55.45?) (david_jencks@63.105.20.225 with plain) by smtp106.prem.mail.sp1.yahoo.com with SMTP; 22 Sep 2008 23:15:42 -0000 X-YMail-OSG: 78UL.Q4VM1ko5xvPSSue4VFk80wF4W9hUN8YXFitBe2H_c8i450kT0FZn61DBfWveDELq.GWSQ3f4d5kh1h5KdD8Fy2VXJDhu6vzwn7ShehGY7CdDiY7Jn85AyAYGpM7UGx2oJnXWvtVLG3t1E2CLfKKmRWRK1dpIQ-- X-Yahoo-Newman-Property: ymail-3 Message-Id: <970F2491-5977-4070-AECE-96C73930D3C8@yahoo.com> From: David Jencks To: user@geronimo.apache.org In-Reply-To: <9e999ed80809221434w1de6706eqd1dbc831559e0597@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: jndi names changed in 2.1? Date: Mon, 22 Sep 2008 16:15:40 -0700 References: <9e999ed80809221434w1de6706eqd1dbc831559e0597@mail.gmail.com> X-Mailer: Apple Mail (2.926) X-Virus-Checked: Checked by ClamAV on apache.org On Sep 22, 2008, at 2:34 PM, =C5=81ukasz Budnik wrote: > Hi all, > > I've been using Geronimo 2.0.2 some time ago and I was able to access > remote SLSB this way: > > DataWeaver2EnterpriseModuleProxy.jar/ModuleProxyImpl/=20 > org.xh.dataweaver.interfaces.ejb.ModuleProxy > > now I'm using Geronimo 2.1 and I'm trying to access remote bean in the > same manner: > > Properties env =3D new Properties(); > env.put(Context.INITIAL_CONTEXT_FACTORY, > = "org.apache.openejb.client.RemoteInitialContextFactory"); > env.put(Context.PROVIDER_URL, "ejbd://localhost:4201"); > Context ctx =3D new InitialContext(env); > > ctx.lookup("NuntiusEJB.jar/RemoteServiceImpl/" > + RemoteService.class.getCanonicalName()); > > the result is: > > javax.naming.NameNotFoundException: > /NuntiusEJB.jar/RemoteServiceImpl/=20 > org.xh.nuntius.enterprise.frontend.RemoteService > does not exist in the system. Check that the app was successfully > deployed. > at = org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:239) > at javax.naming.InitialContext.lookup(InitialContext.java:392) > > Does anybody knows how it's done in G2.1? Or am i missing something =20= > very stupid? It's quite flexible and I don't remember the details.... but you can =20 find out what your ejbs were actually bound to by looking in the var/=20 log/geronimo.log where your app starts up. thanks david jencks > > > best regards > =C5=81ukasz