I have a jboss-all.xml which is placed in the META-INF folder of App1.war.
This descriptor defines a dependency on activemq.rar for App1.war.
<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
Would it be possible to have the undeployment order the reverse of what is given in jboss-all.xml.That way App1.war will be undeployed first and then activemq.rar.I have added a post for this in the forum as well.