Sample application using Spring RabbitMQ as Message Broker and WebSocket
The technology stack used is provided by Spring, in particular:
- Spring Boot - 2.1.1.RELEASE
- Spring Rabbit - 2.1.2.RELEASE
- Spring AMQP - 5.1.3.RELEASE
- Spring WebSocket - 5.1.3.RELEASE
- Reactor Netty - 0.8.3.RELEASE
- Freemarker - 2.3.28
- JDK 8 - Install JDK 1.8 version
- Maven - Download latest version
- RabbitMQ Server - 3.8.3
-
Download and install latest version of RabbitMQServer
-
Enable Management console from shell
rabbitmq-plugins enable rabbitmq_management
-
Enable STOMP Endpoint installing plugin from shell:
rabbitmq-plugins enable rabbitmq_stomp rabbitmq-plugins enable rabbitmq_web_stomp
- Start Client and Server Application
- Open Client web page http://localhost:8083/rabbit
- Invoke Server API
Method | URI | Description | Parameters |
---|---|---|---|
GET |
/rabbit/send/{message} | Send an arbitrary message | message |