在WebSphere 8上焊接 [英] Weld on WebSphere 8

查看:79
本文介绍了在WebSphere 8上焊接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以用Weld代替WebSphere 8的CDI提供程序(OpenWebBeans)?失败了,有没有办法在WebSphere中完全完全禁用CDI?

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?

我为什么需要这个?我们有一个针对Weld开发的项目,不幸的是,我们发现它依赖于许多Weld特质.我们可以通过org.jboss.weld.environment.servlet.Listener在Tomcat和Jetty中成功引导Weld,但是WebSphere的内置CDI实现似乎会干扰.

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.

推荐答案

否,无法替换或禁用WebSphere Application Server中的CDI.我唯一(不令人满意的)建议是重新编写代码以避免特质.

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.

这篇关于在WebSphere 8上焊接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆