Version 4

    My dependency doesn't work?

     

    Question

     

    I have added a dependency but it does not affect the startup ordering?

    e.g.

    <depends>jboss.management.local:J2EEApplication=tdi.ear,J2EEServer=Local,j2eeType=WebModule,name=tdi.war</depends>
    

     

    Answer

     

    That is because that MBean is not a service, NOTE: there is no

    service=

    , but more generally it is not created through an MBean deployment or via the service controller.

     

    In this case, it is an MBean that provides the JSR77 facade over the real service.

     

    You should look for the real mbean service that it represents, in the example above since it is a war deployment it will be in jboss.web.deployment.