JBOSS
Using JBOSS CLI
Start CLI tool for administration of JBOSS:
$ ./jboss-cli.sh
When prompt shows, connect to the server:
[disconnected /] connect
Deploy war
[standalone@localhost:9999 /] deploy /path/to/myApp.war
Deploy war and keep it disabled
[standalone@localhost:9999 /] deploy /path/to/myApp.war --disabled
Undeploy war:
[standalone@localhost:9999 /] undeploy myApp.war
Enable already deployed war:
[standalone@localhost:9999 /] deploy --name=myApp.war
Disable war:
[standalone@localhost:9999 /] undeploy myApp.war --keep-content
Exit JBOSS CLI:
[standalone@localhost:9999 /] exit