open class SpringJtaSynchronizationAdapter : Synchronization
Adapter that implements the JTA javax.transaction.Synchronization interface delegating to an underlying Spring org.springframework.transaction.support.TransactionSynchronization.
Useful for synchronizing Spring resource management code with plain JTA / EJB CMT transactions, despite the original code being built for Spring transaction synchronization.
Author
Juergen Hoeller
Since
2.0
See Also
javax.transaction.Transaction#registerSynchronizationorg.springframework.transaction.support.TransactionSynchronization
SpringJtaSynchronizationAdapter(springSynchronization: TransactionSynchronization)
Create a new SpringJtaSynchronizationAdapter for the given Spring TransactionSynchronization and JTA TransactionManager. SpringJtaSynchronizationAdapter(springSynchronization: TransactionSynchronization, jtaUserTransaction: UserTransaction) SpringJtaSynchronizationAdapter(springSynchronization: TransactionSynchronization, jtaTransactionManager: TransactionManager)
Create a new SpringJtaSynchronizationAdapter for the given Spring TransactionSynchronization and JTA TransactionManager. Note that this adapter will never perform a rollback-only call on WebLogic, since WebLogic Server is known to automatically mark the transaction as rollback-only in case of a |
open fun afterCompletion(status: Int): Unit
JTA Needs to invoke the Spring synchronization's |
|
open fun beforeCompletion(): Unit
JTA In case of an exception, the JTA transaction will be marked as rollback-only. |