Deploying applications on a WildFly domain
Deploying applications on a WildFly domain is not as simple as deploying to a standalone server. There is no predefined deployments
folder in the domain installation. The reason for this is that in the domain
mode, there can be many servers belonging to different server groups, each one running different profiles. In this situation, a single deployments
folder raises the obvious question: which server groups will use that folder?
Next, we are going to look at the options available when deploying applications to a WildFly domain. These two options are as follows:
The command-line interface (CLI)
The admin web interface
Deploying to a domain using the CLI
Let's see how to deploy an application using the CLI. Start by launching the CLI, and connect to the domain controller, as follows:
[disconnected /] connect domain@localhost:9990 /]
When you deploy an application using the domain mode, you have to specify to which server group the deployment is associated...