title: How to MBean depends EJBs in JBoss 7
body: <p>I'm using MBean in Jboss 7. Mbean need to call some EJBs at startup, but I cannot control ordering of startup EJBs and MBeans. In Jboss 4, I can do that by befine MBean in jboss-service.xml with depends tag. But in Jboss 7 this way does not work anymore.</p>
  
  <pre><code>&lt;mbean code="com.mycompany.vms.adapter.connector.SourceConnector" name="mycompany:service=SourceConnector,source=SILTERRA" xmbean-dd="META-INF/SILTERRA-SourceConnector-xmbean.xml"&gt;
      &lt;depends&gt;jboss.j2ee:jndiName=mycompany/vms/ImportService,service=EJB&lt;/depends&gt;
      &lt;depends&gt;jboss.j2ee:service=EJB,jndiName=mycompany/vms/EJBCommandService&lt;/depends&gt;
      &lt;depends&gt;jboss.mq.destination:service=Queue,name=vms/ReceiverQueue&lt;/depends&gt;
      &lt;depends&gt;jboss.mq.destination:service=Queue,name=vms/DMuxerQueue&lt;/depends&gt;
      &lt;depends&gt;jboss.mq.destination:service=Queue,name=vms/ChannelProcessorQueue&lt;/depends&gt;
      &lt;depends&gt;jboss.mq.destination:service=Queue,name=vms/TransactionProcessorQueue&lt;/depends&gt;
      &lt;depends&gt;jboss.mq.destination:service=Queue,name=vms/SynchronizerQueue&lt;/depends&gt;
      &lt;depends&gt;jboss.mq.destination:service=Queue,name=vms/CommandQueue&lt;/depends&gt;
      &lt;depends&gt;jboss.mq.destination:service=Topic,name=vms/SystemAlertsTopic&lt;/depends&gt;
      &lt;depends&gt;jboss.mq.destination:service=Queue,name=vms/LotIssueQueue&lt;/depends&gt;
  &lt;/mbean&gt;
  </code></pre>
  
  <p>Please anyone help me on this. Anyway can do that on JBoss7?</p>