I am reading up on Java EE CDI and I am a confused about how class-based Resource injection works
The Java EE 6 tutorial gives the following example usage:
@Resource(name="myMessageQueue",
type="javax.jms.ConnectionFactory")
public class SomeMessageBean {
...
}
I get how it is declared but how is the declared resource supposed to be used in the SomeMessageBeanClass? What is the myMessageQueue resource injected into?