Provided you have already archive your application into a *.ear archive, the easiest way to deploy the archive under jboss is to copy it into $JBOSS_HOME/server/default/deploy. Nice and simple!
However, sometime you might want to modify some files within your application and expect to see the changes online immediately. In this case, you will want to deploy the application in its exploded version. Yes, Jboss support both single *.ear archive or exploded directory for your application.
Suppose we got a sample *.EAR called jboss-seam-messages.ear and we want to deploy it in its exploded format and rename the application to message.ear. We will need,
1.
Create a new directory called "messages.ear" and cp jboss-seam-messages.ear into it, run,
jar xvf jboss-seam-messages.ear
This will unarchive the top level of of the archive, but not jboss-seam-messages.war and jboss-seam-message.jar.
2. In a similar way, unarchive jboss-seam-message.war and jboss-seam-message.jar and rename the extacted directories to "messages.jar" and messages.war"
3. update application.xml under message.ear/META-INF/ and modify revelvant entries.
4. Copy the exploded directory to $JBOSS_HOME/server/default/deploy.