I'm having some issues with injecting the javax.enterprise.event.Event instance inside my EJB when i'm deployed in an EAR. Apparently it is null. So when i go an fire the event i get the npe.
However when i use the EJB in a Web app packaged in a WAR it works fine.
Does anyone know why it is failing in an EAR and not in the WAR? I use the @Inject to inject the Event. I'm running on AS 7.1.
The issue seems to be related to this issue. https://issues.jboss.org/browse/AS7-1458
Adding the bean.xml fixed the issue with the injected event.
Retrieving data ...