Class JmsMessageHeaderErrorMessageStrategy

java.lang.Object
org.springframework.integration.jms.support.JmsMessageHeaderErrorMessageStrategy
All Implemented Interfaces:
org.springframework.integration.support.ErrorMessageStrategy

public class JmsMessageHeaderErrorMessageStrategy extends Object implements org.springframework.integration.support.ErrorMessageStrategy
An ErrorMessageStrategy extension that adds the raw JMS message as a header to the ErrorMessage.
Since:
6.3
  • Field Details

    • JMS_RAW_MESSAGE

      public static final String JMS_RAW_MESSAGE
      Header name/retry context variable for the raw received message.
      See Also:
  • Constructor Details

    • JmsMessageHeaderErrorMessageStrategy

      public JmsMessageHeaderErrorMessageStrategy()
  • Method Details

    • buildErrorMessage

      public org.springframework.messaging.support.ErrorMessage buildErrorMessage(Throwable throwable, @Nullable org.springframework.core.AttributeAccessor context)
      Specified by:
      buildErrorMessage in interface org.springframework.integration.support.ErrorMessageStrategy