/javaee7-websocket

WebSocket Protocol with Java API for WebSocket (JSR 356), WebSocket API (JS - W3C) and AngularJS deployed on WildFly 10

Primary LanguageJavaMIT LicenseMIT

WebSocket Java EE 7 - AngularJS - WildFly 10 Docker

Build Status

This project shows how to use the WebSocket Protocol with :

  • Java API for WebSocket (from Java EE 7 specifications)

  • WebSocket HTML 5 / Javascript API (from W3C)

  • AngularJS framework

  • Deployed on WildFly 10.0.0.Final on a Docker Container

  • Build with Maven in a Docker Container

Docker Way

$ docker-machine create --driver virtualbox javaee7-websocket
$ eval $(docker-machine env javaee7-websocket)
# Build the project with Maven
$ docker-compose up
# Deploy the app on WildFly in a Docker container
$ docker-compose -f deploy.yml up
$ open http://$(docker-machine ip javaee7-websocket)
Screenshot of the WebSocket Java EE 7 demo with a severals matches and AngularJS deployed on WildFly
Figure 1. Multiple matches in live (US OPEN)

Install on your local WildFly 10 Application Server

  1. Clone this project :

    git clone https://github.com/mgreau/javaee7-websocket
  2. Start wildfly :

    $JBOSS_HOME/bin/standalone.sh
  3. Build the war and deploy it automatically with maven :

    mvn clean package jboss-as:deploy
  4. Open your browser on http://localhost:8080/usopen/index.html