此規則會標示使用 commonj.timer 和 commonj.work API。
在 WebSphere Liberty Base、ND 及 z/OS 22.0.0.1 版以及更新版本上,透過 heritageAPIs-1.1 特性提供了 CommonJ Timer and Work Manager API。
CommonJ Timer 和 Work Manager API 已由 JSR 236 Concurrency Utilities for Java EE
concurrent-1.0,但現在 WebSphere Liberty 提供這兩個 API 的支援。 建議將 Concurrency Utilities 用於新的應用程式,但
CommonJ API 可用來加速現有應用程式的現代化。
如需在 WebSphere Liberty 中配置使用 CommonJ Timer 和 Work Manager API 的相關資訊,請參閱
啟用繼承程式設計模型的說明文件。
CommonJ Timer 和 Work Manager API 並未在 Managed Liberty、 Open Liberty 或 WebSphere Liberty Core 上提供。 當遷移至 Managed Liberty、 Open Liberty 或 WebSphere Liberty Core 時,必須使用 Concurrency Utilities。 使用 Concurrency Utilities。 如需將 CommonJ Timer 和 Work Manager API 移轉至 Concurrency Utilities for Java EE 的相關資訊和範例,請參閱 從非同步 Bean 和 CommonJ 移轉至 EE Concurrency 的範例。
CommonJ Timer 和 Work Manager API 在 WebSphere Application Server 9.0 傳統版中標示為已淘汰。