JBoss Community

Re: JNDI EJB lookup in jboss5.1.0 GA

created by Varsha Hardikar in JNDI and Naming - View the full discussion

Thank you. I read that chapter and tried it out but am having problems. My ejb is deployed in an ear file.

 

Here is my code:

 

import org.jboss.ejb3.annotation.LocalBinding;
import org.jboss.ejb3.annotation.RemoteBinding;

 

@Stateless
@LocalBinding(jndiBinding="ABCBean/local")
@RemoteBinding(jndiBinding="ABCBean/remote")

public class ABCBean implements ABCLocal, ABCRemote {

.... }


I lookup for that ejb from a servlet in a different package.

try

{
return (ABCRemote)ctx.lookup("ABCBean/remote");
}
catch (NameNotFoundException e) { ..
}

I get a javax.naming.NameNotFoundException: ABCBean/remote could not be found during jboss startup. I am on jboss 5.1.0GA.


Thanks

 

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community