Spring enabled Camel Integration with RabbitMQ and MongoDB3
Clone or download
Latest commit cc71edc Jan 1, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Initial Check-In Jan 1, 2019
.gitattributes Initial commit Jan 1, 2019
.gitignore Initial Check-In Jan 1, 2019
README.md Update README.md Jan 1, 2019
mvnw Initial Check-In Jan 1, 2019
pom.xml Initial Check-In Jan 1, 2019



Another rb sample showing working of Apache Camel with RabbitMQ and MongoDB3. I used Rabbit MQ Web UI to publish the message, and after receiving the message by RabbitMQ Consumer the Camel Router routes the message to MongoDB3. Had to convert the message/exchange body to String before routing body to mongodb.

Installing Mongodb


Starting Mongo

"C:\Program Files\MongoDB\Server<version>\bin\mongod.exe" --dbpath c:\mongo\datadb

Starting Mongo Client

Use the Mongo Client to validate the saved message. $ ./mongo MongoDB shell version v3.6.3 connecting to: mongodb:// MongoDB server version: 3.6.3 use userdb switched to db userdb db.user.find()

Installing RabbitMQ


Starting RabbitMQ

  • command to enable Rabbit MQ Web UI

rabbitmq-plugins.bat enable rabbitmq_management

  • Admin Web UI Link


  • Admin commands to check status

rabbitmqctl status rabbitmqctl stop *

Sample JSON User message

{ "age": 29, "eyeColor": "black", "name": "Vicki Slat", "gender": "female", "company": "TEST", "email": "vickislat@test.com", "phone": "+1 (000) 546-990", "address": "681 TEST Street, TEST, OLD, 8627" }


https://www.baeldung.com/apache-camel-spring-boot https://dzone.com/articles/apache-camel-mongodb-component-example https://docs.mongodb.com/v3.2/tutorial/install-mongodb-on-windows/ http://api.mongodb.com/java/2.10.1/com/mongodb/MongoClient.html https://github.com/apache/camel/blob/master/components/camel-mongodb3/src/main/docs/mongodb3-component.adoc http://camel.apache.org/mongodb.html https://www.rabbitmq.com/install-windows.html