No, that will just ensure the order of deployment so FOO.war is always loaded before BAR.war.
for accessing its classes you should add jboss-deployment-structure.xml and reference it there as well.
ctomc thanks for quick answer. Something like this?
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<module name="deployment.FOO.war" export="true"/>
Will it work if I just deploy these two WARs (FOO and BAR) independently or must they be part of the same EAR?