log.debug("registering recovery for factory : " + factory);
if(!isRegistered(factory) && registry != null)
{
XARecoveryConfig xaRecoveryConfig = new XARecoveryConfig(factory, userName, password);
HornetQResourceRecovery resourceRecovery = new HornetQResourceRecovery(xaRecoveryConfig);
registry.register(resourceRecovery);
configMap.put(xaRecoveryConfig, resourceRecovery);
return resourceRecovery;
}
return null;