abhirockzz / javaee8-jaxrs-sse-client

JAX-RS 2.1 SSE Client API support in Java EE 8

Home Page:https://abhirockzz.wordpress.com/2017/07/27/jax-rs-2-1-sse-client-api-example-using-glassfish-5-on-docker/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To run....

  • git clone https://github.com/abhirockzz/javaee8-jaxrs-sse-client.git
  • mvn clean install - will create javaee8-jaxrs-sse-client.war in target
  • Create Docker image - docker build -t <tag> .
  • Run ! docker run --rm --name javaee8-jaxrs-sse-client -it -p 8080:8080 <tag>

Test it...

Let things start up (20-30 seconds) - you should see SSE events being consumed from https://sse.now.sh