What do you want to achieve?
When .jar and .war are packed in a .ear, the .jar will be deployed before
the .war, so your dependency is already honoured.
I want to war deployed BEFORE the ejb.jar. Can I control it?
You might try the PrefixDeploymentSorter (see conf/jboss-service.xml) and
name the war 1_my.war and the ear 2_myear.jar.