This content has been marked as final.
Show 3 replies
-
1. Re: How to register custom XAResourceRecovery class ?
jhalliday Sep 17, 2012 9:05 AM (in response to jubecker)Implement as a helper, register it programatically rather than via the properties. That way your deployer handles the class loading for it, as well as ensuring it's registered and deregistered as your datasource(s) are deployed/undeployed, otherwise you're creating nasty timing issues at startup and shutdown. For JDBC pools the JCA handles this, but if you're not going via JCA then you're going to have to cope with it yourself.
-
2. Re: How to register custom XAResourceRecovery class ?
jubecker Sep 17, 2012 10:35 AM (in response to jhalliday)Is there an offical way to obtain the XARecoveryModule to add the helper via module.addXAResourceRecoveryHelper(...) ?
-
3. Re: How to register custom XAResourceRecovery class ?
jhalliday Sep 17, 2012 10:53 AM (in response to jubecker)Pull the AS7 source and have a look at the connector module, it already has an integration spi for that stuff. Basically you want to inject the RecoveryManagerService from the TxnServices.