Book Image

Hands-On Cloud Development with WildFly

By : Tomasz Adamski
Book Image

Hands-On Cloud Development with WildFly

By: Tomasz Adamski

Overview of this book

The book starts by introducing you to WildFly Swarm—a tool that allows you to create runnable microservices from Java EE components. You’ll learn the basics of Swarm operation—creating microservices containing only the parts of enterprise runtime needed in a specific case. Later, you’ll learn how to configure and test those services. In order to deploy our services in the cloud, we’ll use OpenShift. You’ll get to know basic information on its architecture, features, and relationship to Docker and Kubernetes. Later, you’ll learn how to deploy and configure your services to run in the OpenShift cloud. In the last part of the book, you’ll see how to make your application production-ready. You’ll find out how to configure continuous integration for your services using Jenkins, make your application resistant to network failures using Hystrix, and how to secure them using Keycloak. By the end of the book, you’ll have a functional example application and will have practical knowledge of Java EE cloud development that can be used as a reference in your other projects.
Table of Contents (14 chapters)

Catalog-service on the OpenShift example

We have covered a lot of theory in this chapter and have introduced many concepts that will help you to better understand how OpenShift works under the hood. It is finally time to try it in practice.

We will deploy a catalog-service with a h2 database. In this example, we will only use the web console and deploy the applications from the book's code repository.

Examples reference: chapter6/catalog-service-openshift-h2

Let's start. Let's enter the host address. You will find it in the log of the minishift start command. After entering it into the web browser, you will be welcomed by the user login screen. Let's enter our Username and Password.

We will be directed to the welcome screen, as follows:

Enter petstore as the name of the project. In order to deploy catalog-service to OpenShift, we will use the source-to-image...