Detect CommonJ Timer and Work Manager APIs

This rule flags the use of commonj.timer and commonj.work APIs.

The CommonJ Timer and Work Manager APIs are provided on WebSphere Liberty Base, ND, and z/OS version 22.0.0.1 and later through the heritageAPIs-1.1 feature. The CommonJ Timer and Work Manager APIs are superseded by JSR 236, Concurrency Utilities for Java EE, concurrent-1.0, but now WebSphere Liberty provides support for both APIs. Concurrency Utilities are recommended for new applications, but the CommonJ APIs can be used to accelerate the modernization of existing applications. For more information on configuring the use of the CommonJ Timer and Work Manager APIs in WebSphere Liberty see the documentation for Enabling heritage programming models.

The CommonJ Timer and Work Manager APIs are not provided on Managed Liberty, Open Liberty or WebSphere Liberty Core. When migrating to Managed Liberty, Open Liberty or WebSphere Liberty Core, work is necessary to use Concurrency Utilities. For information and examples about migrating CommonJ Timer and Work Manager APIs to Concurrency Utilities for Java EE, see Examples to migrate to EE Concurrency from Asynchronous beans and CommonJ.

The CommonJ Timer and Work Manager APIs are marked as deprecated in WebSphere Application Server traditional V9.0.