lucky lance pisze:
Thank you for a quick response.
I am a new learner of Geronimo.
Actually my client code is,
Hashtable<String,String> env = new Hashtable<String,String>(); env.put("java.naming.factory.initial","org.apache.openejb.client.RemoteInitialContextFactory");
env.put("java.naming.provider.url","iiop://localhost:1050");
InitialContext ctx = new InitialContext(env);

Object obj = ctx.lookup(jndiName);

The problem is no matter how I write the jndiName, a NamingException will be thrown complaining it can not find the name. And the similiar code works fine in Glassfish, JBoss, WebSphere 6.1 + EJB3, and . My question is whether geronimo supports the standard way ctx.lookup("foo.MyBean") as well, or what's the proper jndi string?

My result of jndi names,
Glassfish:  "foo.MyRemote"
JBoss:      "foo.MyBean/remote"
Webshpere: "foo.MyRemote" with IBM jvm.
  "nodes/<hostname>/node/servers/server1/foo\.MyRemote" with Sun jvm.
Geronimo:   ?

Or is where any setting to enable the remote EJB client
from the default.

Thanks
Lance
Hi
1) You can change your log level and you'll find your jndi name
2) For G 2.0.2 it's 'MyBeanRemote' by the default (bean name + type of interface)

You can find all this information in wiki -> http://cwiki.apache.org/GMOxDEV/client-jndi-names.html

Beniamin

Reply via email to