[jboss-user] [EJB3] - Injected Java EE Event is null inside EAR

Michael G do-not-reply at jboss.com
Thu Jun 28 08:44:35 EDT 2012


Michael G [https://community.jboss.org/people/mpgong] created the discussion

"Injected Java EE Event is null inside EAR"

To view the discussion, visit: https://community.jboss.org/message/744761#744761

--------------------------------------------------------------
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
[https://community.jboss.org/message/744761#744761]

Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120628/17875deb/attachment.html 


More information about the jboss-user mailing list