Class WebSphereLibertyJtaPlatform
java.lang.Object
org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
org.hibernate.engine.transaction.jta.platform.internal.WebSphereLibertyJtaPlatform
- All Implemented Interfaces:
Serializable
,TransactionManagerAccess
,JtaPlatform
,Service
,Configurable
,ServiceRegistryAwareService
JTA platform implementation intended for use with WebSphere Liberty and OpenLiberty
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Can we currently register aSynchronization
?int
Obtain the current transaction status using whatever means is preferred for this platformgetTransactionIdentifier
(Transaction transaction) Determine an identifier for the given transaction appropriate for use in caching/lookup usages.protected TransactionManager
protected UserTransaction
void
registerSynchronization
(Synchronization synchronization) Register a JTASynchronization
in the means defined by the platform.Methods inherited from class org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
canCacheTransactionManager, canCacheTransactionManagerByDefault, canCacheUserTransaction, canCacheUserTransactionByDefault, configure, getSynchronizationStrategy, getTransactionManager, injectServices, jndiService, retrieveTransactionManager, retrieveUserTransaction, serviceRegistry
-
Field Details
-
TMF_CLASS_NAME
- See Also:
-
UT_NAME
- See Also:
-
-
Constructor Details
-
WebSphereLibertyJtaPlatform
public WebSphereLibertyJtaPlatform()
-
-
Method Details
-
locateTransactionManager
- Specified by:
locateTransactionManager
in classAbstractJtaPlatform
-
locateUserTransaction
- Specified by:
locateUserTransaction
in classAbstractJtaPlatform
-
canRegisterSynchronization
public boolean canRegisterSynchronization()Description copied from interface:JtaPlatform
Can we currently register aSynchronization
?- Specified by:
canRegisterSynchronization
in interfaceJtaPlatform
- Overrides:
canRegisterSynchronization
in classAbstractJtaPlatform
- Returns:
- True if registering a
Synchronization
is currently allowed; false otherwise.
-
getCurrentStatus
Description copied from interface:JtaPlatform
Obtain the current transaction status using whatever means is preferred for this platform- Specified by:
getCurrentStatus
in interfaceJtaPlatform
- Overrides:
getCurrentStatus
in classAbstractJtaPlatform
- Returns:
- The current status.
- Throws:
SystemException
- Indicates a problem access the underlying status
-
getTransactionIdentifier
Description copied from interface:JtaPlatform
Determine an identifier for the given transaction appropriate for use in caching/lookup usages.Generally speaking the transaction itself will be returned here. This method was added specifically for use in WebSphere and other unfriendly Java EE containers.
- Specified by:
getTransactionIdentifier
in interfaceJtaPlatform
- Overrides:
getTransactionIdentifier
in classAbstractJtaPlatform
- Parameters:
transaction
- The transaction to be identified.- Returns:
- An appropriate identifier
-
registerSynchronization
Description copied from interface:JtaPlatform
Register a JTASynchronization
in the means defined by the platform.- Specified by:
registerSynchronization
in interfaceJtaPlatform
- Overrides:
registerSynchronization
in classAbstractJtaPlatform
- Parameters:
synchronization
- The synchronization to register
-