Skip to content
This is a simple spring-boot app that shows how to configure easily RabbitMQ with AMQP for producing and consuming messages in default format and JSON.
Java
Branch: master
Clone or download

Latest commit

Latest commit 94b74d4 Nov 5, 2018

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.mvn/wrapper Initial commit Oct 22, 2016
img Upgraded to latest version, included Docker compose file, updated REA… Feb 24, 2018
src/main Simplified configuration Nov 4, 2018
.gitignore Initial commit Oct 22, 2016
README.md
docker-compose.yml Upgraded to latest version, included Docker compose file, updated REA… Feb 24, 2018
mvnw Initial commit Oct 22, 2016
mvnw.cmd Initial commit Oct 22, 2016
pom.xml Fixed a mistake in configuration Nov 5, 2018

README.md

Spring Boot AMQP messaging example with RabbitMQ

This is a simple Spring Boot app that shows how to easily configure RabbitMQ with AMQP for producing and consuming messages in default format (java serialized) and JSON.

In this sample project, each message is sent as JSON and then decoded:

  1. on a queue as a generic Message object,
  2. and on a different queue as the original specific class (with JSON deserialization).

Spring Boot AMQP Configuration Example with RabbitMQ

Note that you need a RabbitMQ server instance running locally to be able to run this application. You can use the included docker-compose.yml file to start a new server using Docker: docker-compose up -d

I recommend you to have a look at the full explanation of this code, you can find it on The Practical Developer site.

You can’t perform that action at this time.