JBoss Community

Injected Java EE Event is null inside EAR

created by Michael G in EJB3 - View the full discussion

Hello,

 

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.

 

Thanks

Reply to this message by going to Community

Start a new discussion in EJB3 at Community