Now let's deploy cluster-demo1
into other-server-group
.
In the previous chapter we already learned how to deploy a project into the server group, so I will briefly describe the process here:
Log in to the management console of master EAP6.
Click on Manage Deployments in the sidebar.
Click on Add under the Content Repository tab and add cluster-demo1.war.
Follow the instructions and save the deployment.
Click on the Server Groups tab.
Click on View of other-server-group.
Click on Assign and select cluster-demo1.war.
Save the deployment and click on En/Disable to start the cluster-demo1.war file.
If everything goes fine, you should see the server output from both master and slave. The following is the output on master:
[Server:master-server] 23:31:58,223 INFO [org.jboss.as.server] (host-controller-connection-threads - 3) JBAS018559: Deployed "cluster-demo1.war" (runtime-name : "cluster-demo1.war")
The following is the output on slave:
[Server...