You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Hernan Cunico <hc...@gmail.com> on 2007/09/04 21:17:56 UTC
Re: One for the docs (Fwd: Standalone Geronimo 2.0.1 client)
Unless we can provide a working example I would suggest you create a page in "Apache Geronimo Development" (GMOxDEV)
BTW, I have some housekeeping pending on GMOxDEV (thx Jason for adding some headers ;-) )
Cheers!
Hernan
David Blevins wrote:
> This reply would be a good one for the docs.
>
> Hernan, do you want to take a stab at this or can you point me at the
> right area to update?
>
> -David
>
>
> Begin forwarded message:
>
>> Resent-From: <db...@visi.com>
>> From: David Blevins <da...@visi.com>
>> Date: August 29, 2007 11:34:24 AM PDT
>> To: user@geronimo.apache.org
>> Subject: Re: Standalone Geronimo 2.0.1 client
>> Reply-To: user@geronimo.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 <jo...@chen.org.nz>
>>> ----------------------------------------------------------------------
>>> "A person should be able to do a small bit of everything,
>>> specialisation is for insects"
>>>
>>
>>
>
>