Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
cdbookstore
topbooks
topcds
README.md
deploy.sh
pom.xml
talk.md
undeploy.sh

README.md

Enough App Server

An e-commerce web application that sells books and CDs and interacts with two external (micro) services to get the top selling books (topbooks) and CDs (topcds). The idea is to deploy these 3 applications as web applications (WAR) but also as microservices (Fat JARs) and see how much footprint they have.

Web Apps

In this configuration the 3 applications are packaged in three seperate war files and deployed in an application server. You can obtain these 3 war files with a mvn install command.

CD Book Store

A full Java EE 7 web application that uses most of the Java EE 7 specifications (CDI, EJB, JTA, JPA, Bean Validation, REST, JSF, JAX-RS, JSON-P...) as well as BootStrap, PrimeFaces, JQuery.

http://localhost:8080/cdookstore

Top Books

A REST interface that returns the Top 3 selling books. It uses a small set of Java EE 7 specification (JAX-RS, JPA and CDI)

http://localhost:8080/topbooks

Top CDs

A web interface that returns the Top 3 selling CDs. It doesn't use any Java EE specification except servlet, everything is made by end (eg. JSon manually created with no external framework)

http://localhost:8080/topcds

Microservices

In this configuration the 3 applications are packaged as three seperate fat executable jars (embedding the application server). You can obtain these 3 war files with a mvn install -Pswarm command.

Docker

Each of the three applications have Dockerfiles. On each one you can build and start it up with docker-compose up. Then, access it with :