This example demonstrates the path to modernizing a Java EE application to a containerized infrastructure. We'll migrate the Java EE 7 Hands-on Lab to Docker. Furthermore, we'll update the presentation layer written in Java Server Faces to a React application.
The repository contains an application for browsing movies along with other related functions. Because we want to update the interface, we'll update the movie entity with extra attributes to make the presentation layer more descriptive. A Docker file builds the application and deploys it in Tomcat EE.
The Movieplex7 application includes a REST interface which simplifies updating the presentation layer. We'll use the React javascript framework to build a client that lists the movies and provides more detail about a movie. The client is also compiled and deployed in Docker.
To run the demo:
docker-compose up
To run the demo in Play-with-Docker:
git clone https://github.com/dockersamples/javaee-demo.git
cd javaee-demo
./add_pwd_host.sh
docker-compose up