public class TransactionHandleMessageAdvice extends org.springframework.transaction.interceptor.TransactionInterceptor implements HandleMessageAdvice
TransactionInterceptor extension with HandleMessageAdvice marker.
When this Advice
is used from the request-handler-advice-chain, it is applied
to the MessageHandler.handleMessage(org.springframework.messaging.Message<?>)
(not to the
AbstractReplyProducingMessageHandler.RequestHandler.handleRequestMessage(org.springframework.messaging.Message<?>)),
therefore the entire downstream process is wrapped to the transaction.
In any other cases it is operated as a regular TransactionInterceptor.
| Constructor and Description |
|---|
TransactionHandleMessageAdvice() |
TransactionHandleMessageAdvice(org.springframework.transaction.PlatformTransactionManager ptm,
java.util.Properties attributes)
Deprecated.
since 5.2.5 in favor of
TransactionHandleMessageAdvice()
and TransactionAspectSupport.setTransactionManager(TransactionManager), TransactionAspectSupport.setTransactionAttributes(Properties) |
TransactionHandleMessageAdvice(org.springframework.transaction.PlatformTransactionManager ptm,
org.springframework.transaction.interceptor.TransactionAttributeSource tas)
Deprecated.
since 5.2.5 in favor of
TransactionHandleMessageAdvice(TransactionManager, TransactionAttributeSource) |
TransactionHandleMessageAdvice(org.springframework.transaction.TransactionManager transactionManager,
org.springframework.transaction.interceptor.TransactionAttributeSource transactionAttributeSource)
Create a new TransactionHandleMessageAdvice.
|
invokeafterPropertiesSet, cleanupTransactionInfo, clearTransactionManagerCache, commitTransactionAfterReturning, completeTransactionAfterThrowing, createTransactionIfNecessary, currentTransactionInfo, currentTransactionStatus, determineTransactionManager, getBeanFactory, getTransactionAttributeSource, getTransactionManager, getTransactionManagerBeanName, invokeWithinTransaction, methodIdentification, prepareTransactionInfo, setBeanFactory, setTransactionAttributes, setTransactionAttributeSource, setTransactionAttributeSources, setTransactionManager, setTransactionManagerBeanNamepublic TransactionHandleMessageAdvice()
public TransactionHandleMessageAdvice(org.springframework.transaction.TransactionManager transactionManager,
org.springframework.transaction.interceptor.TransactionAttributeSource transactionAttributeSource)
transactionManager - the default transaction manager to perform the actual transaction managementtransactionAttributeSource - the attribute source to be used to find transaction attributesTransactionInterceptor@Deprecated
public TransactionHandleMessageAdvice(org.springframework.transaction.PlatformTransactionManager ptm,
java.util.Properties attributes)
TransactionHandleMessageAdvice()
and TransactionAspectSupport.setTransactionManager(TransactionManager), TransactionAspectSupport.setTransactionAttributes(Properties)ptm - the default transaction manager to perform the actual transaction managementattributes - the attribute source to be used to find transaction attributes@Deprecated
public TransactionHandleMessageAdvice(org.springframework.transaction.PlatformTransactionManager ptm,
org.springframework.transaction.interceptor.TransactionAttributeSource tas)
TransactionHandleMessageAdvice(TransactionManager, TransactionAttributeSource)ptm - the default transaction manager to perform the actual transaction managementtas - the attribute source to be used to find transaction attributes