Hello,
I'm sending two follow-up questions for EJB FAQ
(
https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html)
My first question concerning Local EJB Access:
I'm able to get reference to Local interface of session bean through @EJB injection.
But what about if I want to get this reference at run-time? (I mean some kind of lookup).
Lookup doesn't work as I tried and read in EJB FAQ: "global JNDI names only apply
to Session/Entity beans that have some kind of Remote interface"
My second question concerns EJB2 lookup:
How can I use @EJB annotation to inject EJB2 session bean?
I'm able to lookup EJB2 bean via old style lookup but not via @EJB...
Thanks a lot,
Paul