Java Reference
In-Depth Information
an application can be deployed just to one server group or to all the server groups.
As a matter of fact, one reason why you might split your domain into different server
groups might be that you are planning to offer different types of services (and hence
applications) on each server group.
So, in order to deploy your HelloWorld.war application to all server groups, issue
the following command:
[domain@localhost:9999 /] deploy HelloWorld.war
--all-server-groups
Successfully deployed HelloWorld.war
If, on the other hand, you want to undeploy an application from all server groups be-
longing to a domain, you have to issue the undeploy command:
[domain@localhost:9999 /] undeploy
HelloWorld.war --all-relevant-server-groups
Successfully undeployed HelloWorld.war
You can also deploy your application just to one server group of your domain by
specifying one or more server groups (separated by a comma) with the --server-
groups parameter, shown as follows:
[domain@localhost:9999 /] deploy HelloWorld.war
--server-groups=main-server-group
Successfully deployed HelloWorld.war
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, shown as
follows:
Search WWH ::




Custom Search