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

Undeploying an application via the CLI


In this recipe, we will learn how to undeploy an application using the CLI. As per the deploy command, we will use just the basic available options. We will analyze the undeploy command deeply, later in the book.

Getting ready

This recipe follows the previous one, which is Deploying an application via CLI. This means that we will find the example application ready to be undeployed. If you skipped the previous recipe, follow the instructions that it provides, or alternatively provide yourself with an application to undeploy.

How to do it…

  1. With your WildFly instance up and running, open a terminal and connect to the CLI as usual:

    $ ./bin/jboss-cli.sh --connect
    [standalone@localhost:9990 /]
  2. Now we need to tell the CLI to undeploy our application as follows:

    [standalone@localhost:9990 /] undeploy example.war
    [standalone@localhost:9990 /]
  3. And the server.log logs the following:

    23:19:50,912 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0022...