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)

Modifying your archive

In our previous examples, each time we created the Swarm instance and applied some configuration on top of it, we used the no-argument deploy method. This method takes the archive generated by the standard Maven build and deploys it on the previously configured container. This is not the only version of the deploy method, though. You are able to create your own archive (or archives) and deploy them to the Swarm container. How? It is possible using the ShrinkWrap API.

The ShrinkWrap API

If you have ever worked with WildFly AS, and, especially, its testing framework Arquillian, you are probably also familiar with the ShrinkWrap API, which is used to build application archives before they are deployed in...