As I was attempting to create a Dynamic Web Project in eclipse I received some notifications in eclipse telling me that I had to not only reference the EJB in the build but import that EJB package in addition to the @EJB dependency injection I used.
Can anyone help me clarify why all three are needed and what exactly is going on. The reason I ask is because to me importing the EJB package alone would be enough to put the EJB class in scope of the calling class, and this indicates that I do not yet have a clear understanding of what JEE6 is trying to achieve with annotations.
The basic difference between import and injection is, compile time checking for the methods, types which are referenced in our java class from some package and injection does create property/object/methods dynamically from the annotation implemented java class.
If anyone have better ideas, you welcome to share with us. Hope this helps.