Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Latest commit

 

History

History
38 lines (23 loc) · 1.32 KB

README.md

File metadata and controls

38 lines (23 loc) · 1.32 KB

⚠️This repository has been archived and is no longer maintained⚠️


springAMQP

Build Status License

Spring boot AMQP client, which communicates with rabbitmq.

Setup

Prerequisites

  • 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/

Configuration

  • Adjust the amqp-properties in the applicaiton.properties file

Default configuration hints

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))