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

Introduction


In this chapter, you will learn how to use the CLI to alter the system's state. That is, changing different settings such as deployments and creating new servers. In the previous chapter, we saw how to grab information out of the CLI. The CLI also provides a method to execute the commands outside it, by specifying the WildFly to connect to and the command to execute.

Furthermore, WildFly provides you with an HTTP API, which can be used to perform actions and to retrieve information (most of these APIs are used to perform system monitoring analysis). In the previous chapter, we were using the CLI to grab information; thus via HTTP we have been using the GET verb of the HTTP protocol. In the following recipes, we will alter the state of the server by using the POST verb, along with the parameters that the WildFly HTTP API needs. The HTTP API only accepts JSON data, so we need to send the data that way.

We will use methods within both the operational modes— standalone and domain...