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.
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.