Henk - good point. The Java EE spec allows for annotated datasource definitions in your code, and also in ejb-jar.xml. It looks like AS7 has this capability already:
https://issues.jboss.org/browse/JBAS-8559