Java Reference
In-Depth Information
If, on the other hand, you want to undeploy an application from all server groups belong-
ing to a domain, you have to issue the undeploy command, as shown in the following
command line:
[domain@localhost:9990 /] undeploy HelloWorld.war
--all-relevant-server-groups
You can also deploy your application just to one server group of your domain by specify-
ing one or more server groups (separated by a comma) with the --server-groups
parameter, as shown in the following command line:
[domain@localhost:9990 /] deploy HelloWorld.war
--server-groups=main-server-group
You can use the tab completion facility in order to complete the value for the list of --
server groups elected for deployment.
Now, suppose we wish to undeploy the application from just one server group. There can
be two possible scenarios. If the application is available just on that server group, you will
just need to feed the server group to the --server-groups flag, as shown in the fol-
lowing command line:
[domain@localhost:9990 /] undeploy HelloWorld.war
--server-groups=main-server-group
On the other hand, if your application is available on other server groups as well, you
need to provide the additional --keep-content flag; otherwise, the CLI will complain
that it cannot delete an application that is referenced by other server groups, as shown in
the following command line:
[domain@localhost:9990 /] undeploy HelloWorld.war
--server-groups=main-server-group --keep-content
Search WWH ::




Custom Search