JBoss Community

Problem with validation for CDI Injection points

reply from Fabricio Lemos in JBoss Tools - View the full discussion

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.

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community