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

Managing an application – deploy, undeploy


In this recipe, we will learn how to deploy and undeploy an application, and to check its status, on a running WildFly instance, by invoking a command to the CLI.

Getting ready

Remember, I'm running WildFly remotely, bound to 192.168.59.103 as IP. WildFly is already up and running.

For this recipe, we will need the application named example, which you can find in my GitHub repository. If you skipped the Managing applications using the deployments folder recipe of 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 example
$ mvn -e clean package

Once done, copy the artifact example.war into your local $WILDFLY_HOME folder.

How to do it…

We will walk through the deploy, status, and undeploy commands separately to better explain their differences when dealing with the standalone and domain...