From user-return-13491-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Thu Jun 18 04:06:08 2009 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 55160 invoked from network); 18 Jun 2009 04:06:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jun 2009 04:06:08 -0000 Received: (qmail 35174 invoked by uid 500); 18 Jun 2009 04:06:18 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 35124 invoked by uid 500); 18 Jun 2009 04:06:18 -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 35116 invoked by uid 99); 18 Jun 2009 04:06:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2009 04:06:17 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.59] (HELO smtp104.prem.mail.sp1.yahoo.com) (98.136.44.59) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 18 Jun 2009 04:06:09 +0000 Received: (qmail 95474 invoked from network); 18 Jun 2009 04:05:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Mime-Version:Subject:Date:References:X-Mailer; b=MMHB5+Rhz+xpvV2irKfc2mPyQgQokHB3EpfrLlSNUyhbhaKz14waaFr4T8hcVgnRv8oRVFLl/+1j87UWf+zvqTcEMuyBPoW0CU+rR60AkTFqqq6XiFJBgXTYsZ9CTLZTP+Dd6tiPdhjilyuuVJirkKMJVs/fNwYA/T5LA4TDboA= ; Received: from 076-076-148-215.pdx.net (david_jencks@76.76.148.215 with plain) by smtp104.prem.mail.sp1.yahoo.com with SMTP; 17 Jun 2009 21:05:48 -0700 PDT X-Yahoo-SMTP: .9oIUzyswBANsYgUm_5uPui0skTnzGJXJQ-- X-YMail-OSG: n7hcmL0VM1mvufFCNuk6y3UEQcrBZoTBwJr2dTvCrLBFFuhsNrB3LViJi1rOQ.RPKeF4JZlU2Mz8AnsRokJVxAlomPEzK6WibYY9a6BiTyLGLlmI8avX_4ZsfiAirTJF3_cHxhJ0L2TaIkE.oRe037HVKEm8AM7dMcJvmCXTrFMPavhemnfl1KRbwO9pOevNOMSqQrGKO2gjj97V1foBBeCrZOjJozYzIHAtMMc8IJz.s8k5Ry35.yzwgrCt7.qMofkk0c.zWz_oaTS6sem3gr3AIpuv_0Tqas29QrINB5CrQIbqDRlRevaJGCaaCuTfJjWsWusxsmGMIONaOpHQ9A-- X-Yahoo-Newman-Property: ymail-3 Message-Id: <070AE1FA-7474-491E-A0EA-6B036195E59C@yahoo.com> From: David Jencks To: user@geronimo.apache.org In-Reply-To: <9c0ed7da0906171817j71f34a5jf484fa5c853eb432@mail.gmail.com> Content-Type: multipart/alternative; boundary=Apple-Mail-25-702773810 Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: JNDI Name for EJB3 Date: Wed, 17 Jun 2009 21:05:46 -0700 References: <24076429.post@talk.nabble.com> <9c0ed7da0906171807l2750136ft1d201ab2eff86524@mail.gmail.com> <9c0ed7da0906171817j71f34a5jf484fa5c853eb432@mail.gmail.com> X-Mailer: Apple Mail (2.935.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-25-702773810 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit That may go over tcp/ip rather than in-vm. The jndi names are printed out in var/log/geronimo.log as the ejbs start. You can also use the in-vm javaee jndi context if you set it up with ejb refs in web.xml. david jencks On Jun 17, 2009, at 6:17 PM, Rodger wrote: > And /repository/org/apache/openejb/openejb-client/ > 3.0.1/openejb-client-3.0.1.jar is necessary. > > 2009/6/18 Rodger > http://cwiki.apache.org/GMOxDEV/client-jndi-names.html will use a > RemoteInitialContextFactory. > Like: > Properties p = new Properties(); > p.setProperty(Context.INITIAL_CONTEXT_FACTORY, > "org.apache.openejb.client.RemoteInitialContextFactory"); > p.setProperty(Context.PROVIDER_URL, "ejbd://localhost:4201"); > Context initialContext=null; > try { > initialContext=new InitialContext(p); > > Object object1 = initialContext.lookup("Secure3Remote"); > Secure3Remote s3r=(Secure3Remote)object1; > > } catch (NamingException e) { > e.printStackTrace(); > } > -- > Best Regards, > Rodger. > > > > -- > Best Regards, > Rodger. --Apple-Mail-25-702773810 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable That may go over tcp/ip rather = than in-vm.  The jndi names are printed out in var/log/geronimo.log = as the ejbs start.

You can also use the in-vm javaee = jndi context if you set it up with ejb refs in = web.xml.

david = jencks

On Jun 17, 2009, at 6:17 PM, Rodger = wrote:

And = <geronimo_home>/repository/org/apache/openejb/openejb-client/3.0.1/o= penejb-client-3.0.1.jar is necessary.




--
Best = Regards,
Rodger.

= --Apple-Mail-25-702773810--