In your application.xml and then list the modules in the order you would like them intialized.
My application has a bunch of MDBs and RAs (resource adapter) and a WAR, all packaged together. I want these modules to be loaded in a specific order. My application is currently using application schema 5.
I tried using "initialize-in-order", and also tried changing my application schema to 6, but I am not able to define the order in which I want these sub-deployment modules to be loaded. For insteance, few of my MDBs have strict dependency on RAs, so I want some of these RAs to be loaded before MDBs starts deploying.
I also tried debugging the JBoss AS7 code, but I don't see org.jboss.ejb3.annotation.Depends annotation on MDBs being entertained anywhere in the code. Am I missing something?
How can I explicitly mention the deployment order?
EDIT: I am using 7.1 Alpha2 nightly build.