Apache Camel SQS组件为异步SEDA队列,未确认或删除SQS消息

时间:2015-07-30 13:44:56

标签: apache-camel amazon-sqs

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());

1 个答案:

答案 0 :(得分:1)

似乎已在apache:https://issues.apache.org/jira/browse/CAMEL-9055

解决此问题