Class JmsMessageHeaderErrorMessageStrategy
java.lang.Object
org.springframework.integration.jms.support.JmsMessageHeaderErrorMessageStrategy
- All Implemented Interfaces:
ErrorMessageStrategy
An
ErrorMessageStrategy
extension that adds the raw JMS message as
a header to the ErrorMessage
.- Since:
- 6.3
- Author:
- Artem Bilan
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Header name/retry context variable for the raw received message. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildErrorMessage
(Throwable throwable, AttributeAccessor context) Build the error message.
-
Field Details
-
JMS_RAW_MESSAGE
Header name/retry context variable for the raw received message.- See Also:
-
-
Constructor Details
-
JmsMessageHeaderErrorMessageStrategy
public JmsMessageHeaderErrorMessageStrategy()
-
-
Method Details
-
buildErrorMessage
Description copied from interface:ErrorMessageStrategy
Build the error message.- Specified by:
buildErrorMessage
in interfaceErrorMessageStrategy
- Parameters:
throwable
- the payload.context
- the attributes.- Returns:
- the ErrorMessage.
-