concept resource injection in category ejb

This is an excerpt from Manning's book EJB 3 in Action, Second Edition.
Java EE 5 had a basic form of dependency injection that EJB could use. It was called resource injection and allowed you to inject container resources, such as data sources, queues, JPA resources, and EJBs, using annotations like @EJB, @Resource, and @PersistenceContext. These resources could be injected into Servlets, JSF backing beans, and EJB. The problem was that this was very limiting. You weren’t able to inject EJB into Struts or JUnit, and you couldn’t inject non-EJB DAOs (data access objects) or helper classes into EJB.
The @Resource annotation is by far the most versatile mechanism for resource injection in EJB 3. In most cases the annotation is used to inject JDBC data sources, JMS resources, and EJB contexts. But the annotation can also be used for anything in the JNDI registry. The following listing shows the @Resource annotation.