1. Go to the RUNTIME page of the management console of the domain
controller.
2.Click on the manage Deployments link in the Domain section
to view the content Repository
3. Click the Add button and upload the war file.
Click Next
Enter Application name here and this name act as context root. And click Save.
4. click on the Assign Button
we want to usg.war deployed to the GB_SERVER_GROUP1, so
place a checkmark in the box next to GB_SERVER_GROUP1, then click the save
button.
The application URL:
http://localhost:8380/usg/
http://localhost:8180/usg/
By default application listening port is 8080, Here I have
added offset port number to 8080.
Deploy and undeploy applications using CLI
1. Deploy the application on particular server group.
[domain@192.168.1.12:9999 /] deploy /home/jbossas/Desktop/apache_war/usg.war --server-groups=GB_SERVER_GROUP01
2. Undeploy the application on particular server group.
[domain@192.168.1.12:9999 /] undeploy usg --server-groups=GB_SERVER_GROUP01
3. Deploy the application on all server groups
[domain@192.168.1.12:9999 /] deploy /home/jbossas/Desktop/apache_war/usg.war --all-server-groups
4. Undeploy the application from all server groups
[domain@192.168.1.12:9999 /] undeploy usg.war --all-relevant-server-groups
5. Deploy the same application to other server group
[domain@192.168.1.12:9999 /] deploy --name=usg.war --server-groups=main-server-group
6. If you want to deploy an application but do not want to enabled then you can use the below command
[domain@192.168.1.12:9999 /] deploy /home/jbossas/Desktop/apache_war/usg.war --disabled
check in admin console
7. Enable the application/ assign the application to particular server group.
[domain@192.168.1.12:9999 /] deploy --name=usg.war --server-groups=GB_SERVER_GROUP01
No comments:
Post a Comment