why can't my EAR project see the annotated EJBs and Entities in my JPA project?
问题 I'm using IBM RAD 7 (aka Eclipse 3.4) and WebSphere 7. I have a workspace with a basic EJB setup; projects TestEAR, TestEJB, TestJPA, TestWeb. I can annotate an ejb ("@Stateless EntityService") in the TestEJB project and it works fine. But if I put an ejb ("@Stateless EntityDAO") in the TestJPA project it doesn't get injected in the EntityService. If I move EntityDAO to the TestEJB project it works fine. Also, if I annotate a class an entity ("@Entity MyEntity") it is not known as an entity