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)

Introducing Keycloak

In order to secure our Petstore application, we will use Keycloak. Keycloak is an open source, single sign-on (SSO) identity management server, which supports, among others, OIDC-based security.

Keycloak is equipped with a convenient, web-based UI, which enables us to configure all aspect of its behavior using the graphical interface. Furthermore, services that we will write have to be integrated with Keycloak as well. In order to make this integration easy, Keycloak provides a bunch of adapters, which are components that can be installed into any given type of service. In the following example, we will discuss how to use both of those tools.

Before we start, let's outline the functionality that we will be adding to the pet store application.

Cart-service

...