| java.lang.Object org.springframework.transaction.jta.SpringJtaSynchronizationAdapter
Field Summary | |
final protected static Log | logger |
Constructor Summary | |
public | SpringJtaSynchronizationAdapter(TransactionSynchronization springSynchronization) Create a new SpringJtaSynchronizationAdapter for the given Spring
TransactionSynchronization and JTA TransactionManager. | public | SpringJtaSynchronizationAdapter(TransactionSynchronization springSynchronization, UserTransaction jtaUserTransaction) 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 beforeCompletion exception. | public | SpringJtaSynchronizationAdapter(TransactionSynchronization springSynchronization, TransactionManager jtaTransactionManager) 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 beforeCompletion exception. |
Method Summary | |
public void | afterCompletion(int status) JTA afterCompletion callback: invoked after commit/rollback. | public void | beforeCompletion() JTA beforeCompletion callback: just invoked before commit. |
logger | final protected static Log logger(Code) | | |
SpringJtaSynchronizationAdapter | public SpringJtaSynchronizationAdapter(TransactionSynchronization springSynchronization)(Code) | | Create a new SpringJtaSynchronizationAdapter for the given Spring
TransactionSynchronization and JTA TransactionManager.
Parameters: springSynchronization - the Spring TransactionSynchronization to delegate to |
SpringJtaSynchronizationAdapter | public SpringJtaSynchronizationAdapter(TransactionSynchronization springSynchronization, UserTransaction jtaUserTransaction)(Code) | | 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 beforeCompletion exception. Hence,
on WLS, this constructor is equivalent to the single-arg constructor.
Parameters: springSynchronization - the Spring TransactionSynchronization to delegate to Parameters: jtaUserTransaction - the JTA UserTransaction to use for rollback-onlysetting in case of an exception thrown in beforeCompletion (can be omitted if the JTA provider itself marks the transaction rollback-onlyin such a scenario, which is required by the JTA specification as of JTA 1.1). |
SpringJtaSynchronizationAdapter | public SpringJtaSynchronizationAdapter(TransactionSynchronization springSynchronization, TransactionManager jtaTransactionManager)(Code) | | 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 beforeCompletion exception. Hence,
on WLS, this constructor is equivalent to the single-arg constructor.
Parameters: springSynchronization - the Spring TransactionSynchronization to delegate to Parameters: jtaTransactionManager - the JTA TransactionManager to use for rollback-onlysetting in case of an exception thrown in beforeCompletion (can be omitted if the JTA provider itself marks the transaction rollback-onlyin such a scenario, which is required by the JTA specification as of JTA 1.1) |
|
|