Got it.
So if the stateless implements an interface, the stateless' JNDI is

Object object = ejbContainer.getContext().lookup
  
("java:global/cdi-examples/CsUndergradCourse!org.superbiz.cdi.examples.Course");

and the client only sees it as the interface, not as the full stateless. So
I
was able to do:
assertTrue(object instanceof Course);

and work with the Course interface.
Thanks.



On Mon, Jul 4, 2011 at 5:15 AM, Jean-Louis MONTEIRO <[email protected]>wrote:

> Hi,
>
> As per the spec, without any interface, your stateless is a local view been
> (not a Local nor a Remote).
> That's why you are able to lookup your bean without the interface name at
> the end.
>
> If you really implement an interface, the stateless will be bound to JNDI
> with its local interface.
>
> Then, you need to specify the interface after.
> Have a look to the log info after the "!".
>
> Hope it helps,
> Jean-Louis
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/simple-stateless-question-tp3642851p3643493.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>



-- 
H

Reply via email to