AMQP (RabbitMQ) Support
Spring Integration 提供通过高级消息队列协议 (AMQP) 接收和发送消息的通道适配器。
Spring Integration provides channel adapters for receiving and sending messages by using the Advanced Message Queuing Protocol (AMQP).
你需要将此依赖项包含在你的项目中:
You need to include this dependency into your project:
-
Maven
-
Gradle
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-amqp</artifactId>
<version>{project-version}</version>
</dependency>
compile "org.springframework.integration:spring-integration-amqp:{project-version}"
以下适配器可用:
The following adapters are available:
Spring Integration 还提供由 AMQP Exchange 和 Queues 支持的点对点消息通道和发布-订阅消息通道。
Spring Integration also provides a point-to-point message channel and a publish-subscribe message channel backed by AMQP Exchanges and Queues.
为了提供 AMQP 支持,Spring Integration 依赖 ( Spring AMQP),它将核心 Spring 概念应用于基于 AMQP 的消息解决方案的开发。Spring AMQP 提供了与 ( Spring JMS) 类似的语义。
To provide AMQP support, Spring Integration relies on (Spring AMQP), which applies core Spring concepts to the development of AMQP-based messaging solutions. Spring AMQP provides similar semantics to (Spring JMS).
虽然提供的 AMQP 通道适配器仅适用于单向消息(发送或接收),但 Spring Integration 还提供用于请求-回复操作的入站和出站 AMQP 网关。
Whereas the provided AMQP Channel Adapters are intended for unidirectional messaging (send or receive) only, Spring Integration also provides inbound and outbound AMQP gateways for request-reply operations.
提示:您应该熟悉 reference documentation of the Spring AMQP project。它提供了更多关于 Spring 与 AMQP 的集成的深入信息,特别是关于 RabbitMQ 的信息。
TIP: You should familiarize yourself with the reference documentation of the Spring AMQP project. It provides much more in-depth information about Spring’s integration with AMQP in general and RabbitMQ in particular.