Work Manager:
- A JCA 1.6 compliant Executor implementation
- 2 API classes
- 5 Implementation classes
- No XML deployment descriptors
- Maven 3 Build
-
Sample use:
@Stateless @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) public class ThreadsResource { @Resource(name="jca/workmanager") WorkExecutorFactory executorFactory; public String threads(){ try(WorkExecutor executor = executorFactory.newExecutor();){ Runnable runnable = new Runnable(){ @Override public void run() { //some work to do } }; executor.execute(runnable); }