How do you use @Inject with an ejb-jar with (one or more) WAR files? <p>Working with GlassFish, trying to be tidy, I would like to put all of my business logic into a single EJB JAR. I then have 2 WAR files. </p> <ul> <li>app-frontend-war </li> <li>app-backend-war</li> <li>app-logic-ejb</li> </ul> <p>Each of the WAR files need to use the EJBs that are within the app-logic-ejb JAR. This EJB JAR holds the main persistence unit. But I am finding that @Inject of any app-logic-ejb EJB's from any Java within the WAR files are not working.</p> <p>Also, I am trying to avoid using an EAR.</p>