git clone https://github.com/abhirockzz/jaxrs-sse-mbw.git
mvn clean install
- this will producejaxrs-sse-mbw.war
intarget
directorydocker build -t <image_name> .
- this will create a Docker imagedocker run --rm -it -p 8080:8080 <image_name>
- what's the Docker host IP ?
docker-machine ip
(e.g. 192.168.99.100)
Access http://<HOST_IP>/jaxrs-sse-mbw/sse/events
- You will get a SSE event with heterogeneous data types