discoveryGroupName = child.getAttributes().getNamedItem("discovery-group-name").getNodeValue();
}
}
ConnectionFactoryConfiguration cfConfig;
String[] strbindings = jndiBindings.toArray(new String[jndiBindings.size()]);
if (discoveryGroupName != null)
{
cfConfig = new ConnectionFactoryConfigurationImpl(name,
ha,
strbindings);
cfConfig.setDiscoveryGroupName(discoveryGroupName);
}
else
{
ArrayList<String> connectors = new ArrayList<String>(connectorNames.size());
for (String connectorName : connectorNames)
{
connectors.add(connectorName);
}
cfConfig = new ConnectionFactoryConfigurationImpl(name, ha, connectors, strbindings);
}
cfConfig.setFactoryType(factType);
cfConfig.setClientID(clientID);
cfConfig.setClientFailureCheckPeriod(clientFailureCheckPeriod);
cfConfig.setConnectionTTL(connectionTTL);
cfConfig.setCallTimeout(callTimeout);
cfConfig.setCallFailoverTimeout(callFailoverTimeout);
cfConfig.setCacheLargeMessagesClient(cacheLargeMessagesClient);
cfConfig.setMinLargeMessageSize(minLargeMessageSize);
cfConfig.setCompressLargeMessages(compressLargeMessages);
cfConfig.setConsumerWindowSize(consumerWindowSize);
cfConfig.setConsumerMaxRate(consumerMaxRate);
cfConfig.setConfirmationWindowSize(confirmationWindowSize);
cfConfig.setProducerWindowSize(producerWindowSize);
cfConfig.setProducerMaxRate(producerMaxRate);
cfConfig.setBlockOnAcknowledge(blockOnAcknowledge);
cfConfig.setBlockOnDurableSend(blockOnDurableSend);
cfConfig.setBlockOnNonDurableSend(blockOnNonDurableSend);
cfConfig.setAutoGroup(autoGroup);
cfConfig.setPreAcknowledge(preAcknowledge);
cfConfig.setLoadBalancingPolicyClassName(connectionLoadBalancingPolicyClassName);
cfConfig.setTransactionBatchSize(transactionBatchSize);
cfConfig.setDupsOKBatchSize(dupsOKBatchSize);
cfConfig.setUseGlobalPools(useGlobalPools);
cfConfig.setScheduledThreadPoolMaxSize(scheduledThreadPoolMaxSize);
cfConfig.setThreadPoolMaxSize(threadPoolMaxSize);
cfConfig.setRetryInterval(retryInterval);
cfConfig.setRetryIntervalMultiplier(retryIntervalMultiplier);
cfConfig.setMaxRetryInterval(maxRetryInterval);
cfConfig.setReconnectAttempts(reconnectAttempts);
cfConfig.setFailoverOnInitialConnection(failoverOnInitialConnection);
cfConfig.setGroupID(groupid);
return cfConfig;
}