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

Deploying and undeploying an application to a specific server group via the CLI


In this recipe, we will learn how to deploy and undeploy an application using the CLI, and assign it to a specific server group. This recipe follows pretty much the same operation as executed in the previous recipe, but is specific to the CLI.

Getting ready

For this recipe, both the domain controller and host controllers should be up and running. For their configuration, please refer to the recipe Connecting the host controller to the domain controller in this chapter.

In this and the following recipe, we will need an application to test our configuration. For this recipe, we require the application named example which 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 in order download all the source code and projects that you will need.

To build the application, type as follows:

$...