abhirockzz / jaxrs-sse-mbw

Handling custom objects with JAX-RS SSE API

Home Page:https://abhirockzz.wordpress.com/2017/08/15/handling-custom-objects-with-jax-rs-sse-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run locally on Docker

  • git clone https://github.com/abhirockzz/jaxrs-sse-mbw.git
  • mvn clean install - this will produce jaxrs-sse-mbw.war in target directory
  • docker build -t <image_name> . - this will create a Docker image
  • docker run --rm -it -p 8080:8080 <image_name>
  • what's the Docker host IP ? docker-machine ip (e.g. 192.168.99.100)

Test it...

Access http://<HOST_IP>/jaxrs-sse-mbw/sse/events - You will get a SSE event with heterogeneous data types

About

Handling custom objects with JAX-RS SSE API

https://abhirockzz.wordpress.com/2017/08/15/handling-custom-objects-with-jax-rs-sse-api

License:GNU General Public License v3.0


Languages

Language:Java 96.1%Language:HTML 3.9%