first you'll need to enable to capability, so have this in the OSGi section of your standalone.xml:
<capability name="javax.jms.api"/>
It should work with that with Jboss 7.2. builds.
For 7.1.1 it still doesn't work as JBoss 7.1.1.Final provides jms, but the module included doesn't provide OSGi metadata, so javax.jms is not available for OSGi. See this issue: https://issues.jboss.org/browse/AS7-2959
What you can do is download the 1.0.1 update to that module from here:
http://search.maven.org/#search%7Cga%7C1%7Cjboss-jms-api_1.1_spec-1.0.1
and install that by placing it in jboss-as-7.1.1.Final\modules\javax\jms\api\main folder, changing module.xml there to point to that file, and restart the server.