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 <[EMAIL PROTECTED]>
----------------------------------------------------------------------
"A person should be able to do a small bit of everything,
specialisation is for insects"