[ARTEMIS-236] Improve Legacy support on older migrating clients

set the client protocol manager factory on the server locator

JIRA: https://issues.apache.org/jira/browse/ARTEMIS-236
This commit is contained in:
Jeff Mesnil 2015-10-09 12:05:07 +02:00
parent fcf18a7644
commit 4bfb6e3a8c
1 changed files with 1 additions and 0 deletions

View File

@ -310,6 +310,7 @@ public class ActiveMQXAResourceWrapper implements XAResource, SessionFailureList
serverLocator = ActiveMQClient.createServerLocator(false, xaRecoveryConfig.getTransportConfig());
}
serverLocator.disableFinalizeCheck();
serverLocator.setProtocolManagerFactory(xaRecoveryConfig.getClientProtocolManager());
csf = serverLocator.createSessionFactory();
if (xaRecoveryConfig.getUsername() == null) {
cs = csf.createSession(true, false, false);