Injecting EJBs from JAR to WAR using CDI

Recently I faced a problem of how to use @Inject annotation in one of the CDI Beans. Our project has a following¬†structure: Business logic: JAR which packs EJB, JPA Entity Classes, … User interface: WAR which packs CDI Beans, images, XHTMLs, … Technically what I call JAR is actually EJB-JAR, because it packs EJBs, but […]