Extracted from last version of EJB3 spec (chapter 3.6.1):
For example, an EJB 3.0 client, com.acme.example.MySessionBean, might obtain a reference
to a bean?s home interface as follows:
@EJB CartHome cartHome;
This home interface could be looked up in JNDI using the EJBContext lookup method as shown in the
following code segment:
@Resource SessionContext ctx;
...
CartHome cartHome =
(CartHome)ctx.lookup(?com.acme.example.MySessionBean/cartHome?);