Here is the route:
from("aws-sqs://myQueue?accessKey=RAW(xxx)&secretKey=RAW(yyy)&deleteAfterRead=false")
.log("Attributes: ${header.CamelAwsSqsAttributes}")
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
Map<String, String> messageAttributes = (Map<String, String>) exchange.getIn().getHeader("CamelAwsSqsAttributes");
...
}
});
The .log()
shows an empty map as well as if I print messageAttributes
from the processor.
I also tried with the header "CamelAwsSqsMessageAttributes"
instead of "CamelAwsSqsAttributes"
but still nothing.
I see the attributes from the AWS
console though.
By the way I get the message body, and I use Camel 2.15