Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 63384 invoked from network); 29 Aug 2007 18:35:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Aug 2007 18:35:21 -0000 Received: (qmail 12017 invoked by uid 500); 29 Aug 2007 18:35:14 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 11988 invoked by uid 500); 29 Aug 2007 18:35:14 -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 11977 invoked by uid 99); 29 Aug 2007 18:35:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2007 11:35:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of david.blevins@visi.com designates 208.42.176.213 as permitted sender) Received: from [208.42.176.213] (HELO g2host.com) (208.42.176.213) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2007 18:36:07 +0000 Received: from [76.167.141.63] (account dblevins@visi.com HELO [192.168.42.22]) by mailfront2.g2host.com (CommuniGate Pro SMTP 5.1.10) with ESMTPSA id 15137598 for user@geronimo.apache.org; Wed, 29 Aug 2007 13:34:41 -0500 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <20070829100920.GB12953@osiris.chen.org.nz> References: <20070829100920.GB12953@osiris.chen.org.nz> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <0612C291-3335-4C11-ACDE-D952EF0584E3@visi.com> Content-Transfer-Encoding: 7bit From: David Blevins Subject: Re: Standalone Geronimo 2.0.1 client Date: Wed, 29 Aug 2007 11:34:24 -0700 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org The jar libraries for a standalone client are just openejb- client-3.0.0-nnnnnnn.jar, the EJB spec jar, plus any other spec jars you may use (JTA, JPA, annotations). Then use these properties: Properties props = new Properties(); props.put("java.naming.factory.initial", "org.apache.openejb.client.RemoteInitialContextFactory"); props.put("java.naming.provider.url", "ejbd://127.0.0.1:4201"); InitialContext context = new InitialContext(props); The JNDI Names of your beans is going to be essentially {moduleId}/ {ejbName}/{interfaceClass} and are logged when the app is started on the info level of the OpenEJB.startup log4j category. Info isn't enabled by default, though, and there have been reports of difficulty getting those log messages to show up which we are looking into. -David On Aug 29, 2007, at 3:09 AM, Jonathan Chen wrote: > Hi all, > > I'm trying to write a standalone Geronimo 2.0.1 EJB client, and I'm > having trouble figuring out the JAR library dependancies as well as > the properties for the InitialContext. > > Currently, I'm guessing that the JAR dependancies are all the JAR > files in the ${GERONIMO_HOME}/lib directory, ie: > > asm-2.2.3.jar > asm-commons-2.2.3.jar > cglib-nodep-2.1_3.jar > commons-cli-1.0.jar > commons-logging-1.0.4.jar > geronimo-cli-2.0.1.jar > geronimo-deploy-jsr88-bootstrapper-2.0.1.jar > geronimo-kernel-2.0.1.jar > geronimo-transformer-2.0.1.jar > jsr88-deploymentfactory.jar > log4j-1.2.14.jar > xpp3-1.1.3.3.jar > xstream-1.1.3.jar > > However, I have no idea what values to provide for the InitialContext > properties, ie: > > java.naming.factory.initial > java.naming.factory.url.pkgs > java.naming.provider.url > > Any help would be appreciated! > > Cheers. > -- > Jonathan Chen > ---------------------------------------------------------------------- > "A person should be able to do a small bit of everything, > specialisation is for insects" >