Skip to content

nidhishkrishnan/messaging

Repository files navigation

Spring Boot RabbitMQ Messaging

This is a Spring Boot RabbitMQ example to demonstrate how we can marshall and convert the RabbitMQ message string to Java domain object based on the binding key using MessageConverter

Screenshot 2020-07-22 at 20 29 41

Running the app

1- Start the docker compose file

docker-compose up

2- Run the app

./gradlew bootRun

3- Access and Check RabbitMQ

Once the application starts successfully, open browser and execute the below url

http://localhost:15672/

Check if you are able to see the exhange declaraions like as shown below

Screenshot 2020-07-22 at 20 18 40

Check if you are able to see the queue declaraions like as shown below

Screenshot 2020-07-22 at 20 38 30

4- Access Swagger UI

Open browser and execute the below url

http://localhost:8080/swagger-ui.html

You can see the swagger ui like as shown below

Screenshot 2020-07-25 at 15 17 39

License

See LICENSE file.