Book Image

WildFly Cookbook

Book Image

WildFly Cookbook

Overview of this book

Table of Contents (23 chapters)
WildFly Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Rolling updates


In this recipe, you will learn how to update your application, using rolling updates, while still providing service availability. To achieve this, we need to configure quite a few things from Apache to WildFly, and code the tester application. We also assume that Apache HTTPD installation and configuration are based on the first two recipes of this chapter.

Getting ready

For this recipe, we will need the application named rolling-test, that you can find in my GitHub repository. If you skipped the Managing applications using the deployments folder recipe in Chapter 2, Running WildFly in Standalone Mode, please refer to it to download all the source code and projects that you will need.

To build the application, do as follows:

$ cd ~/WFC/github/wildfly-cookbook
$ cd rolling-test
$ mvn -e clean package

How to do it…

Let's create four folders from the WildFly installation directory $WILDFLY_HOME, each one representing a server node.

  1. Open a terminal and execute the following commands...