I am trying to ensure that a module which contains an EJB is deployed before an MBean which uses one of the session beans within this module.
I have a jboss-service.xml within my .sar file which is as follows:
<mbean code="..." name="LabContext:name=AnalyserManager"> <depends>jboss.j2ee:module=labcontextprotoEJB.jar,service=EjbModule</depends> </mbean>
As described in the devel guide, dependencies only apply to the lifecyle operations, not deployment.