I got a simple stateless bean
@Stateless
public class CsUndergradCourse implements Course {...}
Course is a plain old java interface.
public interface Course {...}
when i start up my ejb container, i can see in the log info, the following
JNDI binding happening:
1. INFO -
Jndi(name="java:global/cdi-examples/CsUndergradCourse!org.superbiz.cdi.examples.Course")
2. INFO - Jndi(name="java:global/cdi-examples/CsUndergradCourse")
but when i lookup up the following,
Object object =
ejbContainer.getContext().lookup("java:global/cdi-examples/CsUndergradCourse");
object is null and the following fails
assertTrue(object instanceof CsUndergradCourse);
but if i remove the implements Course, everything works.
Whats going on? I'm assuming that the JNDI binding in 2. is the object I'm
looking for, but it clearly is not.
Why does implementing the interface change the binding?
--
H