This is working on jboss-as-7.1.0.Beta1 (but still not fixed on trunk). However, I now have an issue with security around XA datasource recovery.
I generated an XA resource recovery record and the recovery system tries to recover it using the recovery helper ironjacamar registered. That in turn calls
which calls getSubject() but the returned subject is null and therefore the recovery fails. The XA datasource is configured as such:
<xa-datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="H2XADS">
Putting the debugger on the issue I see that the security issue arises because the "recoverSecurityDomain" and "subjectFactory" passed in during the xa datasource deployment are both null. Are there any properties that I can set on the xa-datasorce config to make sure these have a value?