There are several ways to do this:
1) add an explicit tag that adds a dependency to the EJB deployment. This ensures your EJB is deployed before your SAR archive. EJB deployments can be found under the jboss.j2ee domain in the JMX kernel -- for instance jboss.j2ee:jndiName=MyJNDIName,service=EJB
2) Nested deployment packages are deployed in the order innermost first, outermost last
3) Enable prefixDeploymentSorter in jboss-service.xml and use nnn-mypackage.xar naming convention where is number that indicates the order of deployments.
Thank you, very much!
That was the most concise, and completely on the nose, response I've read in a long time.
You're welcome ;-)