Bean on war project:
import javax.enterprise.inject.Model;
import javax.inject.Inject;import test.ExampleBean;
@Model public class ExampleModel {
@Inject private ExampleBean exampleBean;
}
Bean on jar project referenced by the first project:
package test;import javax.ejb.Stateless;@Statelesspublic class ExampleBean {}
I assume the bean is injectable as the project execute ok on the server. Both projects have CDI support enabled.