How to let JBoss deploy an application after other apps?

If you are running JBoss AS 7 or WildFly check the following tutorial: Configuring JBoss AS 7 deployment order.

For older JBoss 4/5/6 releases follow this tip:

If your application needs to be deployed after other applications, the quickest way to instruct JBoss to do it is simply creating a “deploy.last” folder inside the “deploy” folder.
JBoss will then pickup this application when has terminated deploying other applications under “deploy”