Websphere workmanager alternative

687 Views Asked by At

In my current project I see workmanager uses to process the thread in asynchronous. We are getting getting rid off IBM products and start using Tomcat. I need some input to replace the workmanager with what. I see commonj api but need some thoughts.

1

There are 1 best solutions below

0
On

For simplest solution you can use WorkManager in Tomcat. See here for example.

However since java 1.5 and JSR-236 it is better to use Executors instead of WorkManager. My practice is to wrap CommonJ WorkManager with Executor facade when application is deployed to WebSphere. And on other platforms use Executors directly.

This is mostly because of legacy code support. New applictions should use Executors directly and forget on WorkManagers, as WorkManager in latest WAS is Executor implementation.

Spring is offering WorkManager Executor wrapper since like forever. It is called WorkManagerTaskExecutor, and with it you can wrap your workmanagers in executors api.

Or to work with Executors and JSR-236 directly use DefaultManagedTaskExecutor. On WAS JSR-236 executor is still implemented using WorkManager instance but that is now implementation detail instead.