How about using a dependency of the EAR file on the SAR file?
That is much cleaner.
Given that the SAR is inside the EAR file I don't think this is possible. I could make the SAR depend on the EJBs I guess but I have other services starting up in the SAR that depened on the EJBs being already deployed.
Can I just add a jboss-service.xml to an EAR file? Do I need to add anyhting to application.xml?