public class OsgiJtaPlatform extends Object implements JtaPlatform
| Constructor and Description |
|---|
OsgiJtaPlatform(OsgiServiceUtil osgiServiceUtil)
Constructs a OsgiJtaPlatform
|
| 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.
|
void |
registerSynchronization(Synchronization synchronization)
Register a JTA
Synchronization in the means defined by the platform. |
TransactionManager |
retrieveTransactionManager()
Locate the
TransactionManager |
UserTransaction |
retrieveUserTransaction()
Locate the
UserTransaction |
public OsgiJtaPlatform(OsgiServiceUtil osgiServiceUtil)
bundleContext - The OSGi bundle contextpublic TransactionManager retrieveTransactionManager()
JtaPlatformTransactionManagerretrieveTransactionManager in interface JtaPlatformTransactionManagerpublic UserTransaction retrieveUserTransaction()
JtaPlatformUserTransactionretrieveUserTransaction in interface JtaPlatformUserTransactionpublic Object getTransactionIdentifier(Transaction transaction)
JtaPlatformgetTransactionIdentifier in interface JtaPlatformtransaction - The transaction to be identified.public boolean canRegisterSynchronization()
JtaPlatformSynchronization?canRegisterSynchronization in interface JtaPlatformSynchronization is currently allowed; false otherwise.public void registerSynchronization(Synchronization synchronization)
JtaPlatformSynchronization in the means defined by the platform.registerSynchronization in interface JtaPlatformsynchronization - The synchronization to registerpublic int getCurrentStatus()
throws SystemException
JtaPlatformgetCurrentStatus in interface JtaPlatformSystemException - Indicates a problem access the underlying statusCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.