public class AsyncEjbBatchThreadPoolService extends Object implements BatchThreadPoolService
BatchThreadPoolService
which uses an &&064;Asynchronous EJB method to spawn new Threads.
The main reason for doing this is to have properly setup JavaEE Threads even
in JavaEE 6 environments where BatchEE is not deeply integrated in other ways.
Activate this class in a batchee.properties files as
BatchThreadPoolService=org.apache.batchee.tools.services.thread.AsyncEjbBatchThreadPoolServiceFor some containers you might additionally need to enable the
UserTransactionTransactionService for
proper JTA transaction handling.| Constructor and Description |
|---|
AsyncEjbBatchThreadPoolService() |
public void init(Properties batchConfig)
init in interface BatchServicepublic void executeTask(Runnable work, Object config)
executeTask in interface BatchThreadPoolServicepublic void shutdown()
shutdown in interface BatchThreadPoolServiceCopyright © 2014 The Apache Software Foundation. All rights reserved.