Spring boot AMQP client, which communicates with rabbitmq.
-
Download and install rabbitmq
-
[For WINDOWS] Activate rabbitmq management plugin by executing the following commands in the command prompt, which has to be executed as administrator
cd %PROGRAMFILES%\RabbitMQ Server\rabbitmq_server_3.4.3\sbin rabbitmq-plugins.bat enable rabbitmq_management rabbitmq-service.bat stop rabbitmq-service.bat install rabbitmq-service.bat start
-
The rabbitmq-management is now accessible under http://localhost:15672/
- Adjust the amqp-properties in the applicaiton.properties file
If you use the default exchange and binding you have to provide the queue name as routing key to send a message to a queue. This has to be defined in the template (template.setRoutingKey(this.queueName)
)