JBoss AS 7
- Web Administration Console
- Command Line Interface
Connected to standalone controller at 192.168.1.1:9999 [firstname.lastname@example.org:9999 /]
Now to deploy an application, all that’s necessary is to type in deploy and the path to the package (the tab-completion will help to navigate the filesystem), e.g.
[email@example.com:9999 /] deploy ../test-app.war
'test-app.war ' deployed successfully.
To undeploy this application its name has to be passed in as the argument to undeploy (if you type in undeploy, the tab-completion will list all the deployed applications and help complete the deployment name), e.g.
[firstname.lastname@example.org:9999 /] undeploy test-app.war
Successfully undeployed test-app.war.
JBoss AS 5-6
You can launch it this way:
(Replace the xx.xx.xx.xx with your IP Address)
Now, in order to deploy an application select in the left tree view the type of Application you wish to deploy (Web, EJB or other) and click on the folder node.
JBoss AS 4
./twiddle.sh -u admin -p <password -s 192.168.1.1 invoke "jboss.system:service=MainDeployer" deploy /tmp/sample.war
and we can see it is deployed with:
./twiddle.sh -u admin -p <password> -s 192.168.1.1 query 'jboss.web.deployment:*'