You could file a feature JIRA and request that the undeployment order would be the reverse of the jboss-all.xml (if present). Worst thing that can happen is that it gets rejected.
How does App1.war depend on the queues and factories? Does it inject them somehow?
Thank you for getting back to me.App1.war injects the queues and connection factories using Spring.
I followed the documentation given in the forum for successful integration of ActiveMQ with JBoss7.
Th pdf in this link - https://community.jboss.org/wiki/JBoss6EAPOr7xxToApacheActiveMQ56Or7 was very useful
I have created a feature JIRA https://issues.jboss.org/browse/AS7-6880 as suggested by Nicklas.