geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Łukasz Budnik" <lukasz.bud...@gmail.com>
Subject jndi names changed in 2.1?
Date Mon, 22 Sep 2008 21:34:44 GMT
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?

best regards
Łukasz
Mime
View raw message