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

Preserve WildFly workers while restarting Apache


Many times, you need to restart Apache and all your WildFly instances become unavailable for a few seconds. So, this annoying 404 error may be a problem. In this recipe, we will learn how to mitigate this problem in a simple way. We also assume that the Apache HTTPD installation and configuration are based on the first two recipes of this chapter.

Getting ready

For this recipe, we will need an application named balancing-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, give the following commands:

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

How to do it…

From the WildFly installation directory $WILDFLY_HOME, let's create a folder representing a server node.

  1. Open a terminal and execute...