3 Replies Latest reply on Apr 12, 2013 6:16 AM by jboss_dev a

    JBoss7 undeployment order

    jboss_dev a Newbie

      Hello All,


      I have used the descriptor file META-INF\jboss-all.xml to define deployment order.We have a App1.war which depends on activemq.rar as connection factories and queues are defined in the rar.

      So I included a META-INF\jboss-all.xml with the below content in App1.war -


      <jboss umlns="urn:jboss:1.0">

        <jboss-deployment-dependencies xmlns="urn:jboss:deployment-dependencies:1.0">

        <dependency name="activemq.rar" />



      While starting the server the deployment order is correct.activemq.rar gets deployed first and then App1.war.

      But when the server is stopped I see the queues and factories being unbound before App1.war is undeployed.This causes errors for App1.war

      I was expecting App1.war to be undeployed first and then activemq.rar.

      Could anybody please let me know if there is anything more to be done to achieve this.I did not find much on undeployment order.