Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Quick start

Phillip Kruger edited this page Nov 22, 2017 · 23 revisions

Quick start

You need a Java EE 7 Server. This has been tested with:

  • Wildfly 10.1.0
  • Payara 4.1.2.172
  • TomEE Plus 7.0.3
  • TODO: Test other

You can also run this on Kubernetes as a Docker image

Get the code

git clone https://github.com/phillip-kruger/notes-example.git

Compile and deploy to running server

Wildfly

cd notes-example/notes-application
mvn clean install -Pwildfly

or Payara

cd notes-example/notes-application
mvn clean install -Ppayara

or TomEE

cd notes-example/notes-application
mvn clean install -Ptomee

The application

JSF UI with Bootstrap

Semantic UI with Javascript connecting to Websocket:

Swagger UI that allow access to REST Endpoints:

WSDL that defines the SOAP Endpoints:

Log file to see the CDI Events:

Demo

This will create a new note, fire a CDI event that will be visible in the log file, and the Semantic UI will update with the note via websockets. The note is persisted to a DB.

  • Use the Swagger UI to delete the note. DELETE /note/{title}

This will remove the create note and will update the Semantic UI via websockets