@Startup for EJB 不适用于 Liberty Profile 中的 EJB?
@Startup for EJBs not available for EJBs in Liberty Profile?
cdi-1.0 feature restrictions The supported entry point into CDI is
through an expression language lookup of an @Named CDI style bean,
with other CDI beans injected into it. The following CDI Integration
points are not available or have limited availability: @Startup
Enterprise Java Beans in CDI enabled modules.
这是否意味着此注释被静默忽略并且需要将带有它的 EJB 注入某处以开始其生命周期?
是否有任何解决方法可以让 EJB 自动启动而无需在另一个组件中进行 @Inject 或 @EJB 编辑?
谢谢
我相信这个限制是说使用 @Inject
将 CDI bean 注入到用 @Startup
注释的 EJB 中可能无法像预期的那样使用 cdi-1.0 功能。 EJB 容器中的 @Startup
注释应该可以正常工作。
限制有点过时了。 @Inject 应该在 cdi-1.0 功能下的 @Startup bean 上工作。如果它不适用于您的方案,请报告。我正在尝试让我的 ID 团队更新限制。
cdi-1.0 feature restrictions The supported entry point into CDI is through an expression language lookup of an @Named CDI style bean, with other CDI beans injected into it. The following CDI Integration points are not available or have limited availability: @Startup Enterprise Java Beans in CDI enabled modules.
这是否意味着此注释被静默忽略并且需要将带有它的 EJB 注入某处以开始其生命周期?
是否有任何解决方法可以让 EJB 自动启动而无需在另一个组件中进行 @Inject 或 @EJB 编辑?
谢谢
我相信这个限制是说使用 @Inject
将 CDI bean 注入到用 @Startup
注释的 EJB 中可能无法像预期的那样使用 cdi-1.0 功能。 EJB 容器中的 @Startup
注释应该可以正常工作。
限制有点过时了。 @Inject 应该在 cdi-1.0 功能下的 @Startup bean 上工作。如果它不适用于您的方案,请报告。我正在尝试让我的 ID 团队更新限制。