How can we solve this so that everything is deployed in the correct order, whether it is HornetQ or JBoss Messaging?
Proper explicit dependencies.
From the different conversations I had, I understood that it is not possible to have ordering between deployment units. What can we do to ensure the messaging server resources are effectively created before MDBs are activated?
Different top level deployment units or sub-deployment units?
Both is possible.
* top level deployment units are components inside MC, hence can easily be controlled wrt dependencies
* sub-deployment units can be dynamically re-ordered: JBDEPLOY-243