Executing commands in batch mode via the CLI
In this recipe, we will learn how to invoke commands in the batch mode. Actually, you can declare and prepare a list of commands to execute, and execute them sequentially at once. The batch mode gives you consistency among your operations and configuration.
Getting ready
Get our WildFly instance up and running; from the folder where we downloaded the GitHub repository, WFC/github/wildfly-cookbook
, copy the example.war
and simple.war
applications into the $JBOSS_HOME
folder and connect to the CLI.
If you can find the applications, you probably need to compile the projects. I'll show you how to do it for the simple
application, and the same applies to the others. Open a terminal and do as follows:
$ cd ~/WFC/github/wildfly-cookbook ...
Get WildFly Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.