public class WebSphereLibertyJtaPlatform extends AbstractJtaPlatform
Modifier and Type | Field and Description |
---|---|
static String |
TMF_CLASS_NAME |
static String |
UT_NAME |
Constructor and Description |
---|
WebSphereLibertyJtaPlatform() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterSynchronization()
Can we currently register a
Synchronization ? |
int |
getCurrentStatus()
Obtain the current transaction status using whatever means is preferred for this platform
|
Object |
getTransactionIdentifier(Transaction transaction)
Determine an identifier for the given transaction appropriate for use in caching/lookup usages.
|
protected TransactionManager |
locateTransactionManager() |
protected UserTransaction |
locateUserTransaction() |
void |
registerSynchronization(Synchronization synchronization)
Register a JTA
Synchronization in the means defined by the platform. |
canCacheTransactionManager, canCacheTransactionManagerByDefault, canCacheUserTransaction, canCacheUserTransactionByDefault, configure, getSynchronizationStrategy, getTransactionManager, injectServices, jndiService, retrieveTransactionManager, retrieveUserTransaction, serviceRegistry
public static final String TMF_CLASS_NAME
public static final String UT_NAME
protected TransactionManager locateTransactionManager()
locateTransactionManager
in class AbstractJtaPlatform
protected UserTransaction locateUserTransaction()
locateUserTransaction
in class AbstractJtaPlatform
public boolean canRegisterSynchronization()
JtaPlatform
Synchronization
?canRegisterSynchronization
in interface JtaPlatform
canRegisterSynchronization
in class AbstractJtaPlatform
Synchronization
is currently allowed; false otherwise.public int getCurrentStatus() throws SystemException
JtaPlatform
getCurrentStatus
in interface JtaPlatform
getCurrentStatus
in class AbstractJtaPlatform
SystemException
- Indicates a problem access the underlying statuspublic Object getTransactionIdentifier(Transaction transaction)
JtaPlatform
getTransactionIdentifier
in interface JtaPlatform
getTransactionIdentifier
in class AbstractJtaPlatform
transaction
- The transaction to be identified.public void registerSynchronization(Synchronization synchronization)
JtaPlatform
Synchronization
in the means defined by the platform.registerSynchronization
in interface JtaPlatform
registerSynchronization
in class AbstractJtaPlatform
synchronization
- The synchronization to registerCopyright © 2021 JBoss by Red Hat. All rights reserved.