public class WebSphereLibertyJtaPlatform extends AbstractJtaPlatform
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TMF_CLASS_NAME |
static java.lang.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
|
java.lang.Object |
getTransactionIdentifier(javax.transaction.Transaction transaction)
Determine an identifier for the given transaction appropriate for use in caching/lookup usages.
|
protected javax.transaction.TransactionManager |
locateTransactionManager() |
protected javax.transaction.UserTransaction |
locateUserTransaction() |
void |
registerSynchronization(javax.transaction.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 java.lang.String TMF_CLASS_NAME
public static final java.lang.String UT_NAME
protected javax.transaction.TransactionManager locateTransactionManager()
locateTransactionManager
in class AbstractJtaPlatform
protected javax.transaction.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 javax.transaction.SystemException
JtaPlatform
getCurrentStatus
in interface JtaPlatform
getCurrentStatus
in class AbstractJtaPlatform
javax.transaction.SystemException
- Indicates a problem access the underlying statuspublic java.lang.Object getTransactionIdentifier(javax.transaction.Transaction transaction)
JtaPlatform
getTransactionIdentifier
in interface JtaPlatform
getTransactionIdentifier
in class AbstractJtaPlatform
transaction
- The transaction to be identified.public void registerSynchronization(javax.transaction.Synchronization synchronization)
JtaPlatform
Synchronization
in the means defined by the platform.registerSynchronization
in interface JtaPlatform
registerSynchronization
in class AbstractJtaPlatform
synchronization
- The synchronization to registerCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.