CDI with ejb 3.1 , weld-logger on glassfish v3.0.1

こ雲淡風輕ζ 提交于 2019-12-01 13:55:18

Either package your EJB in a .war OR package it as ejb-jar inside a "traditional" .ear. I consider the .war packaging as a convenience for projects without strong modularization needs. But this doesn't mean the rules changed when using an .ear packaging.

In other words, I don't think you can mix both approaches and wouldn't expect a container to support it.

As a side note, I wonder why you're packaging cdi-api inside the EAR, I think the API is provided by the container.

In my opinion, you should try to keep things simple.

looks like we cant use Injection of weld logger in ejb in a case of glassfish ejb container because of it is ejb container managed bean and it dont see producer

Current design is to separate ejb and war module - at list it forks for me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!