In an out-of-the-box configuration of the Spring Integration AWS SnsMessageHandler
outgoing channel adapter, a Spring Message
header named nativeHeaders
of type LinkedMultiValueMap
is populated somewhere along the chain. During the conversion process to an SNS message, the handler delegates to the SqsHeaderMapper
, which issues a log at WARN
level for every message that the automatically-populated nativeHeaders
can't be converted to an AWS-compatible format.
I don't want to suppress logs from the SqsHeaderMapper
in case there's a real bug (like I forget to stringify some POJO header value), but I don't see either a flag to prevent creation of the nativeHeaders
header or a way to configure the SqsHeaderMapper
instance that's privately owned by the SnsMessageHandler
. Is there a clean way to remove this warning?