WebSocket Java EE 7 - AngularJS - WildFly 10 Docker
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)
Install on your local WildFly 10 Application Server
-
Clone this project:
git clone https://github.com/mgreau/javaee7-websocket
-
Start wildfly:
$JBOSS_HOME/bin/standalone.sh
-
Build the war and deploy it automatically with maven:
mvn clean package jboss-as:deploy
-
Open your browser on http://localhost:8080/usopen/index.html
