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/openejb-client-3.0.1.jar is necessary.

2009/6/18 Rodger <eternaljian@gmail.com>
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.