I am not really sure what your use case is but controlling ordering is not the optimal way to deploy because JBoss tries to do parallel deployments to speed up the process, if you should do that then you can provide dependencies of each deployment on another. For example if you want file2.war to deploy after file1.war, you should provide a dependency of file2.war on file1.war as shown below in your jboss-deployment-structure.xml
(stored in META-INF
for ears and WEB-INF
in wars)
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name="deployment.file1.ear" />
</dependencies>
</deployment>
</jboss-deployment-structure>
Again, trying to micro manage the deployments is rarely necessary but use this with caution.
Good luck!