I have two applications, foo.ear and bar.ear that are being deployed to a JBoss server with foo.ear depending on bar.ear. Because of the dependence I would want to have bar.ear loaded before foo.ear. Wondering if there is way to control the load order.
I think you should reference to JBOSS_HOME/server/default/conf/jboss_service.xml. And think about PrefixDeploymentSorter in URLDeploymentScanner service.