geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Zink <>
Subject Accesing EJB3 with RemoteInterface
Date Mon, 01 Oct 2007 15:30:54 GMT

I have an EAR File containing a MessageDriven bean. This MDB makes a lookup to a Stateless
Session Bean, which is deployed as external EJB-JAR File (not inside the same EAR). The lookup
ends up in a NameNotFoundException. I’m not sure what I did wrong.

The EJB-JAR contains the EJB and in META-INF the openejb-jar.xml:
<openejb-jar xmlns="">
	<dep:environment xmlns:dep="">

The EJB itself:
public class QuelleAccessAuImpl implements QuelleAccessAu {
	public String start(Integer vorgangPK, QuelleDTO quelle) throws SystemException {	
		System.out.println( vorgangPK );	
                return null;


The Interface QuelleAccessAu contains the annotation @Remote

This is packed into an ejb-jar File and deployed to Geronimo.

Inside the MessageDriven Bean (another EAR-File), I try to access the EJB QuelleAccessAuImpl
with the following Code:
Properties props = new Properties();
props.setProperty("java.naming.factory.initial", "org.openejb.client.RemoteInitialContextFactory");
props.setProperty("java.naming.provider.url", "");
InitialContext ic = new InitialContext(props);           
QuelleAccessAu ejb = (QuelleAccessAu) ic.lookup("");

This lookup ends up with a nameNotFoundException.

Can anybody see what I did wrong? 

Thanks a lot!

Regards Jochen

Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!

View raw message