Package org.frankframework.jta
Class AbstractStatusRecordingTransactionManager
java.lang.Object
org.springframework.transaction.support.AbstractPlatformTransactionManager
org.springframework.transaction.jta.JtaTransactionManager
org.frankframework.jta.ThreadConnectableJtaTransactionManager
org.frankframework.jta.AbstractStatusRecordingTransactionManager
- All Implemented Interfaces:
- Serializable,- IThreadConnectableTransactionManager,- org.springframework.beans.factory.DisposableBean,- org.springframework.beans.factory.InitializingBean,- org.springframework.transaction.ConfigurableTransactionManager,- org.springframework.transaction.jta.TransactionFactory,- org.springframework.transaction.PlatformTransactionManager,- org.springframework.transaction.TransactionManager
- Direct Known Subclasses:
- NarayanaJtaTransactionManager
public abstract class AbstractStatusRecordingTransactionManager
extends ThreadConnectableJtaTransactionManager
implements org.springframework.beans.factory.DisposableBean
JtaTransactionManager-wrapper that enables to recover transaction logs produced by another instance.
- Author:
- Gerrit van Brakel
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static enumNested classes/interfaces inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManagerorg.springframework.transaction.support.AbstractPlatformTransactionManager.SuspendedResourcesHolder
- 
Field SummaryFieldsFields inherited from class org.springframework.transaction.jta.JtaTransactionManagerDEFAULT_TRANSACTION_SYNCHRONIZATION_REGISTRY_NAME, DEFAULT_USER_TRANSACTION_NAME, FALLBACK_TRANSACTION_MANAGER_NAMESFields inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManagerlogger, SYNCHRONIZATION_ALWAYS, SYNCHRONIZATION_NEVER, SYNCHRONIZATION_ON_ACTUAL_TRANSACTION
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract jakarta.transaction.TransactionManagervoiddestroy()protected Stringprotected jakarta.transaction.TransactionManagervoidprotected abstract booleanShutdown the transaction manager, attempting to complete all running transactions.voidprotected voidMethods inherited from class org.frankframework.jta.ThreadConnectableJtaTransactionManagergetCurrentTransaction, resumeTransaction, suspendTransactionMethods inherited from class org.springframework.transaction.jta.JtaTransactionManagerafterPropertiesSet, applyIsolationLevel, applyTimeout, buildUserTransaction, checkUserTransactionAndTransactionManager, createTransaction, doBegin, doCleanupAfterCompletion, doCommit, doGetJtaTransaction, doGetTransaction, doJtaBegin, doJtaResume, doJtaSuspend, doRegisterAfterCompletionWithJtaTransaction, doResume, doRollback, doSetRollbackOnly, doSuspend, findTransactionManager, findTransactionSynchronizationRegistry, findUserTransaction, getJndiEnvironment, getJndiTemplate, getTransactionManager, getTransactionSynchronizationRegistry, getUserTransaction, initTransactionSynchronizationRegistry, initUserTransactionAndTransactionManager, isExistingTransaction, lookupTransactionManager, lookupTransactionSynchronizationRegistry, lookupUserTransaction, registerAfterCompletionWithExistingTransaction, retrieveTransactionSynchronizationRegistry, retrieveUserTransaction, setAllowCustomIsolationLevels, setAutodetectTransactionManager, setAutodetectTransactionSynchronizationRegistry, setAutodetectUserTransaction, setCacheUserTransaction, setJndiEnvironment, setJndiTemplate, setTransactionManager, setTransactionManagerName, setTransactionSynchronizationRegistry, setTransactionSynchronizationRegistryName, setUserTransaction, setUserTransactionName, shouldCommitOnGlobalRollbackOnly, supportsResourceAdapterManagedTransactions, useSavepointForNestedTransactionMethods inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManagercommit, determineTimeout, getDefaultTimeout, getTransaction, getTransactionExecutionListeners, getTransactionSynchronization, invokeAfterCompletion, isFailEarlyOnGlobalRollbackOnly, isGlobalRollbackOnParticipationFailure, isNestedTransactionAllowed, isRollbackOnCommitFailure, isValidateExistingTransaction, prepareForCommit, prepareSynchronization, resume, rollback, setDefaultTimeout, setFailEarlyOnGlobalRollbackOnly, setGlobalRollbackOnParticipationFailure, setNestedTransactionAllowed, setRollbackOnCommitFailure, setTransactionExecutionListeners, setTransactionSynchronization, setTransactionSynchronizationName, setValidateExistingTransaction, suspend, triggerBeforeCommit, triggerBeforeCompletionMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.transaction.ConfigurableTransactionManageraddListenerMethods inherited from interface org.springframework.transaction.PlatformTransactionManagercommit, getTransaction, rollback
- 
Field Details- 
logprotected org.apache.logging.log4j.Logger log
 
- 
- 
Constructor Details- 
AbstractStatusRecordingTransactionManagerpublic AbstractStatusRecordingTransactionManager()
 
- 
- 
Method Details- 
createTransactionManagerprotected abstract jakarta.transaction.TransactionManager createTransactionManager() throws org.springframework.transaction.TransactionSystemException- Throws:
- org.springframework.transaction.TransactionSystemException
 
- 
shutdownTransactionManagerprotected abstract boolean shutdownTransactionManager() throws org.springframework.transaction.TransactionSystemExceptionShutdown the transaction manager, attempting to complete all running transactions.- Returns:
- true if a successful shutdown took place, or false if any transactions are pending that need to be recovered later.
- Throws:
- org.springframework.transaction.TransactionSystemException
 
- 
retrieveTransactionManagerprotected jakarta.transaction.TransactionManager retrieveTransactionManager() throws org.springframework.transaction.TransactionSystemException- Overrides:
- retrieveTransactionManagerin class- org.springframework.transaction.jta.JtaTransactionManager
- Throws:
- org.springframework.transaction.TransactionSystemException
 
- 
determineTmUid
- 
setUid
- 
destroypublic void destroy()- Specified by:
- destroyin interface- org.springframework.beans.factory.DisposableBean
 
- 
writeStatusprotected void writeStatus(AbstractStatusRecordingTransactionManager.Status status) throws org.springframework.transaction.TransactionSystemException - Throws:
- org.springframework.transaction.TransactionSystemException
 
- 
writepublic void write(String filename, String text) throws org.springframework.transaction.TransactionSystemException - Throws:
- org.springframework.transaction.TransactionSystemException
 
- 
read
 
-