why don't you use the dependency injection for local interfaces?
@EJB CustomerDAOLocal customerLocal;
This is pretty obvious. Somehow(!) I thought I had to do a lookup. I never realized I could just inject the reference. EJB3 is great.
Thanks for the suggestion.
Well... the suggestion was good, obviously.
But I DO have a need to lookup the bean directly.
Can anyone tell me what is the proper lookup using the classes described above ?
As a further precision, the lookup I am trying to do is within a stateless bean that is accessed remotely.
client ----> access bean (remote) -----> DAO (local)
Would that change anything ?
BTW, I DO see the CustomerDAO bean deployed with (local) in the JNDI bound beans list.