-
1. Re: Missing JAXR service dependency when configuring an XA datasource
mmusgrov Nov 25, 2011 9:23 AM (in response to mmusgrov)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
org.jboss.jca.core.tx.jbossts.XAResourceRecoveryImpl getXAResources()
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">
<xa-datasource-property name="URL">jdbc:h2:mem:test1</xa-datasource-property>
<xa-datasource-class>
org.h2.jdbcx.JdbcDataSource
</xa-datasource-class>
<driver>h2</driver>
<security>
<user-name>sa</user-name>
<password>sa</password>
</security>
</xa-datasource>
-
2. Re: Missing JAXR service dependency when configuring an XA datasource
mmusgrov Nov 25, 2011 10:23 AM (in response to mmusgrov)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?