This information is related to JBoss AS 4/5/6 releases. In the new JBoss AS 7, deployment can be pursued with different instruments. See this JBoss AS 7 introduction for more information about it.
Deploying an application with JBoss AS is a straightforward task. If you have access to the host where JBoss is installed you can simply copy the application (.jar , .war, .ear etc) into the JBOSS_HOME/server/<your config>/deploy folder.
Simply substitute <your config> with your server configuration (default, all, minimal, web, standard)
An application can be deployed in two flavours:
- Packed archive (.jar , .war, .ear)
- Exploded directory (directory whose name ends with .jar, .war, .ear)
It is advised to use exploded directory for development and packed archive for production since you can do partial redeployments of the application with exploded directory.
For example if you are deploying a Web application and you want to update just one Servlet, with exploded directory you can do it without redeploying the application.
Also remember that simply "touching" a Java EE configuration file (web.xml , application.xml) causes the application to redeploy. In the same way, touching a JBoss specific configuration file (like jboss-web.xml) will cause the application to redeploy as well.
How to deploy an application remotely with JBoss AS
How to configure a different deployment directory with JBoss AS
How to add a custom JBoss archive in an ear