tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xavier Dury <>
Subject EJBContainerRule
Date Fri, 10 Oct 2014 12:15:44 GMT

I have been playing with the EJBContainerRule but, in the logs, I always see some warnings
like these:

WARNING - WARN ... EjbModule1458021134:	The application [EjbModule1458021134] uses @Inject
but CDI is not enabled. Maybe youd need to add a beans.xml file.
WARNING - 1 warning for EjbModule(path=EjbModule1458021134)

I put a beans.xml in both src/main/resources/META-INF and src/test/resources/META-INF, so
I don't understand why it's complaining.

If I inject my test with @EJB instead of @Inject then the warnings disappear.

Do I need to do something else?



View raw message