使用驼峰路由订阅队列到主题

时间:2017-04-13 08:15:00

标签: spring apache-camel aws-sdk

如何使用apache camelspring订阅主题排队?

我这样做

amazonSNSClient.subscribe("arn:aws:sns:yopa-local:000000000000:test-topic-with-subscriptions", 
    "sqs", "arn:aws:sqs:yopa-local:000000000000:test-subscribed-queue-standard");

带参数

endpoint -> arn:aws:sqs:yopa-local:000000000000:test-subscribed-queue-standard
protocol -> sqs
topic-arn -> arn:aws:sns:yopa-local:000000000000:test-topic-with-subscriptions

似乎工作正常。但是如何使用camel

来做到这一点

1 个答案:

答案 0 :(得分:0)

您可以使用Camel的AWS-SNS / AWS-SQS组件。文档:http://camel.apache.org/aws-sns.html

http://camel.apache.org/aws-sqs.html