ARTEMIS-3120 Preserve default LocatorConfig if no configuration provided in RecoveryConfig
This commit is contained in:
parent
d2f06034cb
commit
fd1ccbe135
|
@ -306,7 +306,9 @@ public class ActiveMQXAResourceWrapper implements XAResource, SessionFailureList
|
|||
} else {
|
||||
serverLocator = ActiveMQClient.createServerLocator(false, xaRecoveryConfig.getTransportConfig());
|
||||
}
|
||||
serverLocator.setLocatorConfig(xaRecoveryConfig.getLocatorConfig());
|
||||
if (xaRecoveryConfig.getLocatorConfig() != null) {
|
||||
serverLocator.setLocatorConfig(xaRecoveryConfig.getLocatorConfig());
|
||||
}
|
||||
serverLocator.disableFinalizeCheck();
|
||||
serverLocator.setProtocolManagerFactory(xaRecoveryConfig.getClientProtocolManager());
|
||||
csf = serverLocator.createSessionFactory();
|
||||
|
|
Loading…
Reference in New Issue