Class TransactionHandleMessageAdvice

All Implemented Interfaces:
Serializable, Advice, Interceptor, MethodInterceptor, Aware, BeanFactoryAware, InitializingBean, HandleMessageAdvice

public class TransactionHandleMessageAdvice extends TransactionInterceptor implements HandleMessageAdvice
A 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.

Since:
5.0
Author:
Artem Bilan, Gary Russell
See Also:
  • Constructor Details

    • TransactionHandleMessageAdvice

      public TransactionHandleMessageAdvice()
    • TransactionHandleMessageAdvice

      public TransactionHandleMessageAdvice(TransactionManager transactionManager, Properties transactionAttributes)
    • TransactionHandleMessageAdvice

      public TransactionHandleMessageAdvice(TransactionManager transactionManager, TransactionAttributeSource transactionAttributeSource)