I've moved them to our repo: narayana/ArjunaJTA/jms at master-JBTM-2616-jms-integration · gytis/narayana · GitHub
In the term of passing the generic resources to the recovery manager, we need to create the recovery manager service bean and reference it in the DummyXAResource and register the recovery helper in the construct method.
@Configuration @Import(RecoveryManagerConfig.class) public class DummyXAConfig { @Autowired RecoveryManagerService rms; @Bean public DummyXAResource xaResource() { rms.addXAResourceRecovery(xaResourceRecovery()); return new DummyXAResource(); } @Bean public DummyXAResourceRecovery xaResourceRecovery() { return new DummyXAResourceRecovery(); } }
That is one way to do it, but it does assume that someone autowires a DummyXAResource. If you had an application that didn't do that (say a recovery manager external process) you would need to call rms.addXAResourceRecovery(xaResourceRecovery()); by hand (probably from the main) with an autowired RecoveryManagerService.