On Sep 22, 2008, at 2:34 PM, Łukasz Budnik wrote:

Hi all,

I've been using Geronimo 2.0.2 some time ago and I was able to access
remote SLSB this way:

DataWeaver2EnterpriseModuleProxy.jar/ModuleProxyImpl/ org.xh.dataweaver.interfaces.ejb.ModuleProxy

now I'm using Geronimo 2.1 and I'm trying to access remote bean in the
same manner:

Properties env = new Properties();
env.put(Context.INITIAL_CONTEXT_FACTORY,
                "org.apache.openejb.client.RemoteInitialContextFactory");
env.put(Context.PROVIDER_URL, "ejbd://localhost:4201");
Context ctx = new InitialContext(env);

ctx.lookup("NuntiusEJB.jar/RemoteServiceImpl/"
                + RemoteService.class.getCanonicalName());

the result is:

javax.naming.NameNotFoundException:
/NuntiusEJB.jar/RemoteServiceImpl/ org.xh.nuntius.enterprise.frontend.RemoteService
does not exist in the system.  Check that the app was successfully
deployed.
        at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:239)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)

Does anybody knows how it's done in G2.1? Or am i missing something very stupid?

It's quite flexible and I don't remember the details.... but you can find out what your ejbs were actually bound to by looking in the var/ log/geronimo.log where your app starts up.

thanks
david jencks



best regards
Łukasz

Reply via email to