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
FieldsModifier and TypeFieldDescriptionstatic final StringHeader name/retry context variable for the raw received message. - 
Constructor Summary
Constructors - 
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:ErrorMessageStrategyBuild the error message.- Specified by:
 buildErrorMessagein interfaceErrorMessageStrategy- Parameters:
 throwable- the payload.context- the attributes.- Returns:
 - the ErrorMessage.
 
 
 -