【问题标题】:Work and Time Manager in WAS Community EditionWAS Community Edition 中的工作和时间管理器
【发布时间】:2013-06-26 06:15:44
【问题描述】:

我们将应用程序部署在 Websphere Application Server 7.x 版上,并使用 Work 和 Timer Manager 分别创建容器管理的线程和计时器。

现在我们必须将我们的应用程序迁移到 IBM WebSphere Application Server Community Edition 3.0。在部署期间,我们的 web.xml 文件中的工作和时间管理器条目出现错误。我试图在网上搜索如何为 WASCE 配置这些,但找不到。我什至不确定 WASCE 是否存在这些。

如果有任何资源,请告知,或者您可以指导我正确的方向。

web.xml 中的条目如下:

<resource-ref id="ResourceRefBinding_tm">
 <res-ref-name>tm/MYApp_TIMERMANAGER</res-ref-name>
 <res-type>commonj.timers.TimerManager</res-type>
 <res-auth>Container</res-auth>
 <res-sharing-scope>Unshareable</res-sharing-scope>
</resource-ref>

 <resource-ref id="ResourceRefBinding_wm">
      <res-ref-name>wm/MyApp_WORKMANAGER</res-ref-name>
       <res-type>commonj.work.WorkManager</res-type>
      <res-auth>Container</res-auth>
      <res-sharing-scope>Shareable</res-sharing-scope>
   </resource-ref>

提前致谢

【问题讨论】:

    标签: websphere application-server websphere-ce


    【解决方案1】:

    WebSphere Application Server 具有 Timer 和 Work Manager API 的专有实现。此 API 由 JSR 237: Work Manager for Application Servers 覆盖,该 API 已被 JSR 236: Concurrency Utilities for JavaTM EE(Java EE 7 的一部分)撤消并替换。该 API 不包含在 WebSphere Application Server Community Edition 中。

    有关计时器管理器的替代方案,请参阅CommonJ TimerManager versus EJB3 TimerService

    【讨论】:

    • 感谢 fnt... 正如我从 web.xml 文件中看到的,我们正在使用 commonj 的 Timer are 和 Work manager。已经编辑了上面的条目。要配置它,我们使用 websphere 默认的工作和时间管理器,并在 xmi bnd 文件和 web.xml 中提供条目。是否有类似的方法可以使用 WAS 社区版配置 commonj 的时间和工作管理器?
    • 如果我的回答不清楚:WAS CE 中支持 Timer and Work Manager API。 WAS CE 的代码库与“常规”WAS (Apache Geronimo) 完全不同。您应该寻找替代方案。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多