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