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.
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 $ cd simple $ mvn -e clean package $ cp target/simple.war ~/WFC/wildfly/