Java EE 8 Demo collection
Switch branches/tags
Nothing to show
Clone or download
marco marco
marco and marco wildfly 12
Latest commit 56a8747 Mar 27, 2018
Failed to load latest commit information.
client wildfly 12 Mar 27, 2018
config wildfly 12 Mar 27, 2018
server wildfly 12 Mar 27, 2018
.gitignore init commit Apr 2, 2017
Dockerfile wildfly 12 Mar 27, 2018 CDI and refactoring Apr 17, 2017
pom.xml wildfly 12 Mar 27, 2018

Java EE 8 Demo with Angular

The scope of the application is to show the new features of the next version of Java EE. Angular 4 (Angular CLI) is used to communicate with the server. This architecture is one of the most common in the professional environnements: Java EE <--> REST Services <--> Angular (JS Framework)


  • Java EE 8 features
    • Bean Validation 2.0 (alpha)
    • CDI 2.0 (alpha)
    • JSONB
  • Java EE 7 features
    • WebSockets

How to install


Production mode

  • clone the git project from the root of the project launch mvn package this generates a package named ROOT.war in the PROJECT/server/target directory you can deploy this package in your favourite application server. The Angular application should answer at the requests to http://localhost:8080 Development mode

Development mode

  • clone the git project You can start the server using your favourite IDE. The project uses a standard Maven directory structure. You need to configure the server to deploy the server.war artifact. from the PROJECT/client/src directory install the npm packages : npm install launch the client with ng serve. The client uses the port 4200 (default for Angular CLI) and you can navigate to http://localhost:4200

Docker image

You can find the docker image here :

The docker image install a linux distribution, download the sources and the required libraries and application server (custom edition). It compiles the sources codes and deploy the application on the port 80.

You can run it with this instruction: docker run --rm -it -p 80:80 javaee/java-demo

How the code is organized

The code structure has been adapted to easily found the ressources of the demo and doesn't follow the best practices for an enterprise project.

The package io.javademo.common.web contains common classes for the infrastructure of the project.

The package io.javademo.examples contains the specific code used for each example. The code is grouped by feature (beans, DTO, resources, services together) and not on technical layers.


17.04.2017: CDI demo, refactoring server and client