Apache Camel 2.15.2
我有这样的路线,消息被发送到MyProcessor但是没有从SQS中删除,它们在30秒内不可见,但随后在SQS中重新显示为可用消息。
from("aws-sqs://myqueue?amazonSQSClient=#myclientbean&waitTimeSeconds=20&maxMessagesPerPoll=10&visibilityTimeout=30&deleteAfterRead=true")
.to("seda:inbound-queue?waitForTaskToComplete=Never&concurrentConsumers=1")
.process(new MyProcessor());
如果我删除了SEDA路由声明,它会按预期工作
from("aws-sqs://myqueue?amazonSQSClient=#myclientbean&waitTimeSeconds=20&maxMessagesPerPoll=10&visibilityTimeout=30&deleteAfterRead=true")
// COMMENT OUT AND SQS messages get deleted
// .to("seda:inbound-queue?waitForTaskToComplete=Never&concurrentConsumers=1")
.process(new MyProcessor());