I am going through JavaEE7-samples repo in github. I found that the author has mentioned the following in this code snippet:
// Cannot be injected using @Inject
@EJB Cart bean;
The author explicitly mentions that @Inject will not work. But I am wondering what is the reason behind it?
I have read the following posts on difference between @EJB and @Inject. but that did not help me here.
http://www.adam-bien.com/roller/abien/entry/inject_vs_ejb