第 12 章 Azure ServiceBus
自 Camel 3.12 起
支持生成者和消费者
集成 Azure ServiceBus 的 azure-servicebus 组件。Azure ServiceBus 是一个完全托管的企业集成消息代理。服务总线可以分离应用程序和服务。服务总线提供可靠、安全的平台,用于异步传输数据和状态。使用消息在不同的应用程序和服务间传输数据。
先决条件
您必须具有有效的 Windows Azure Storage 帐户。如需更多信息,请参阅 Azure 文档门户。
12.1. 依赖项 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
当在 Camel Spring Boot 中使用 azure-servicebus 时,请将以下 Maven 依赖项添加到 pom.xml 中,以支持自动配置:
<dependency> <groupId>org.apache.camel.springboot</groupId> <artifactId>camel-azure-servicebus-starter</artifactId> </dependency>
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-azure-servicebus-starter</artifactId>
</dependency>