Spring Messaging AMQP
This project supports the AMQP-based messaging solutions. There is a high-level API to interact with desired brokers. These interactions can send and receive messages from a broker.
Like in the other Spring projects, these facilities are provided by the template classes, which expose the core features provided by the broker and implemented by the Spring Module.
This project has two parts: spring-amqp is the base abstraction, and spring-rabbit is the RabbitMQ implementation for RabbitMQ. We will use spring-rabbit because we are using the RabbitMQ broker.
Adding Spring AMQP in our pom.xml
Let's add the spring-amqp jars to our project. spring-amqp has a starter dependency which configures some common things for us, such as ConnectionFactory and RabbitTemplate, so we will use that. To add this dependency, we will configure our pom.xml follows:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId...