public class UserTransactionTransactionService extends Object implements TransactionManagementService
TransactionManagementService
which controls
the transaction via UserTransaction
.
This SPI implementation is useful on containers which do not properly expose a
fully working global TransactionManager via the specced JNDI location
(e.g. WebSphere 8.x).
To activate this implementation just add the following lines to your batchee.properties file:
TransactionManagementService=org.apache.batchee.tools.services.thread.UserTransactionTransactionServiceThis SPI can only be used in conjunction with the
AsyncEjbBatchThreadPoolService
Constructor and Description |
---|
UserTransactionTransactionService() |
Modifier and Type | Method and Description |
---|---|
TransactionManagerAdapter |
getTransactionManager(javax.batch.runtime.context.StepContext stepContext) |
void |
init(Properties batchConfig) |
public void init(Properties batchConfig)
init
in interface BatchService
public TransactionManagerAdapter getTransactionManager(javax.batch.runtime.context.StepContext stepContext)
getTransactionManager
in interface TransactionManagementService
Copyright © 2017 The Apache Software Foundation. All rights reserved.