A simple stomp message broker sample.
It uses Spring Framework's simple messaging broker, which handles pubsub using STOMP messages over WebSocket.
It also provides a webpage to connect/subscribe/publish using stomp.js
mvn clean install
java -jar target/stomp-simple-broker-0.0.1-SNAPSHOT.war
- Open multiple browser windows to
http://localhost:8080/index.html
Connect
, type a message andPublish
- All windows will show the published message
Alternatively, to start broker in tomcat, copy target/stomp-simple-broker-0.0.1-SNAPSHOT.war
to tomcat webapp directory