问题
We're moving from Websphere to JBoss, but some of the code has dependencies on Websphere's WorkManager (com.ibm.websphere.asyncbeans.WorkManager). Has anyone dealt with this before and have recommendations on how to replace Websphere's WorkManager and what you'd replace it with?
回答1:
Unfortunately, there is currently no Java EE standard for a WorkManager equivalent; however, JSR-236 (Concurrency Utilities for Java EE) may be back as a candidate for inclusion in Java EE 7.
Until then, depending on how you are currently using the IBM async beans WorkManager and your specific use cases, you may have a few different options to consider -
- CommonJ WorkManager
- EJB 3.0 Timer Service
- EJB 3.1 Asynchronous Beans
- Servlet 3.0 Asynchronous Servlets
回答2:
You could probably checkout the Spring Framework's WorkManager
.
Check this link out for more details : Class WorkManagerTaskExecutor
来源:https://stackoverflow.com/questions/9026516/replacing-webspheres-workmanager-in-jboss