The project provides a basic springboot project which exposes an endpoint for STOMP protocol with SockJS.
- STOMP endpoint with sockjs at
/handler
- Health check endpoint at
/health
- A ping pong message controller with text response. When a message is sent to
/app/text/ping
topic then it responsds with a textpong
on/topic/ping
topic - A ping pong message controller with json response. When a message is sent to
/app/json/ping
topic then it responds with a pong on/topic/ping
topic in the following format:{ "msg": "pong" }
- An error endpoint. Sending a message on this endpoint at
/app/err
returns an ERROR STOMP frame which will also terminate the connection
- Use
mvn install
to build the project - Use
mvn dockerfile:build -Ddocker.image.prefix=<image_prefix>
for building the docker image
docker run -p <exposed_port>:8080 <image_prefix>/stomp-test-docker-image
This project is licensed under the MIT License - see the LICENSE file for details