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)

The catalog-service with database

You have learned the essential knowledge to understand how to work with persistent storage in the OpenShift cloud. Now, let's take a look at this with a practical example. Let's update our catalog-service deployment so that it connects to the database.

Configuring PostgreSQL database

First, let's ensure that we have removed the previous version of the catalog-service. In order to do that, we will need to use the oc delete command. The command interface is the same as the interface for the get operation. You will be able to delete an object by directly specifying its name or use labels to indicate objects that you want to delete. There are many objects related to a single application...