Weld on WebSphere 8

余生颓废 提交于 2019-12-14 01:29:10

问题


Is it possible to replace WebSphere 8's CDI provider (OpenWebBeans) with Weld? Failing that, is there any way to simply disable CDI altogether in WebSphere?

Why would I need this? We have a project that was developed against Weld, and unfortunately we've found that it relies on a number of Weld idiosyncrasies. We're able to successfully bootstrap Weld via org.jboss.weld.environment.servlet.Listener in Tomcat and Jetty, but WebSphere's built-in CDI implementation seem to be interfering.


回答1:


No, it is not possible to either replace or disable CDI in WebSphere Application Server. My only (unsatisfactory) suggestion is to rework your code to avoid the idiosyncrasies.



来源:https://stackoverflow.com/questions/10056600/weld-on-websphere-8

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