public class OsgiJtaPlatform extends java.lang.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
|
java.lang.Object |
getTransactionIdentifier(javax.transaction.Transaction transaction)
Determine an identifier for the given transaction appropriate for use in caching/lookup usages.
|
void |
registerSynchronization(javax.transaction.Synchronization synchronization)
Register a JTA
Synchronization in the means defined by the platform. |
javax.transaction.TransactionManager |
retrieveTransactionManager()
Locate the
TransactionManager |
javax.transaction.UserTransaction |
retrieveUserTransaction()
Locate the
UserTransaction |
public OsgiJtaPlatform(OsgiServiceUtil osgiServiceUtil)
bundleContext - The OSGi bundle contextpublic javax.transaction.TransactionManager retrieveTransactionManager()
JtaPlatformTransactionManagerretrieveTransactionManager in interface JtaPlatformTransactionManagerpublic javax.transaction.UserTransaction retrieveUserTransaction()
JtaPlatformUserTransactionretrieveUserTransaction in interface JtaPlatformUserTransactionpublic java.lang.Object getTransactionIdentifier(javax.transaction.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(javax.transaction.Synchronization synchronization)
JtaPlatformSynchronization in the means defined by the platform.registerSynchronization in interface JtaPlatformsynchronization - The synchronization to registerpublic int getCurrentStatus()
throws javax.transaction.SystemException
JtaPlatformgetCurrentStatus in interface JtaPlatformjavax.transaction.SystemException - Indicates a problem access the underlying statusCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.