Something like this:
The above will allow you control over the startup of EARs.
However, rereading your original question, it seems that you actually want to control startup of modules __within__ an EAR. That's already possible with the @DependsOn annotation.
Did you mean modules or deployed applications?
For modules you need to set the correct dependencies in the module.xml
I meant deployed applications.
You might add a jboss-all.xml to your EAR file, you'll find examples if you search for.
I was not able to get the jboss dependency config to work correctly. I hit some lib dependency issues where myear.ear has classpath dependencies on libs.war as well as an application deployment dependency on primarydependency.ear. All of the deployments depend on libs.war.
I'm going to try some variations with eap-6.2. My initial iterations were on 6.1.
Thanks for your help,