long retryInterval,
String connectionLoadBalancingPolicyClassName)
throws Exception
{
ManagedOperation operation = ManagementSupport.getOperation(managementView, JMSConstants.ConnectionFactory.COMPONENT_NAME, "createConnectionFactory", JMSConstants.ConnectionFactory.COMPONENT_TYPE);
operation.invoke(new SimpleValueSupport(SimpleMetaType.STRING, name),
new SimpleValueSupport(SimpleMetaType.BOOLEAN_PRIMITIVE, ha),
new SimpleValueSupport(SimpleMetaType.BOOLEAN_PRIMITIVE, useDiscovery),
new SimpleValueSupport(SimpleMetaType.INTEGER_PRIMITIVE, cfType),
new SimpleValueSupport(SimpleMetaType.STRING, connectorNames),
new SimpleValueSupport(SimpleMetaType.STRING, bindings),
new SimpleValueSupport(SimpleMetaType.STRING, clientId),
new SimpleValueSupport(SimpleMetaType.INTEGER_PRIMITIVE, dupsOkBatchSize),
new SimpleValueSupport(SimpleMetaType.INTEGER_PRIMITIVE, transactionBatchSize),
new SimpleValueSupport(SimpleMetaType.LONG_PRIMITIVE, clientFailureCheckPeriod),
new SimpleValueSupport(SimpleMetaType.LONG_PRIMITIVE, connectionTTL),
new SimpleValueSupport(SimpleMetaType.LONG_PRIMITIVE, callTimeout),
new SimpleValueSupport(SimpleMetaType.INTEGER_PRIMITIVE, consumerWindowSize),
new SimpleValueSupport(SimpleMetaType.INTEGER_PRIMITIVE, confirmationWindowSize),
new SimpleValueSupport(SimpleMetaType.INTEGER_PRIMITIVE, producerMaxRate),
new SimpleValueSupport(SimpleMetaType.INTEGER_PRIMITIVE, producerWindowSize),
new SimpleValueSupport(SimpleMetaType.BOOLEAN_PRIMITIVE, cacheLargeMessageClient),
new SimpleValueSupport(SimpleMetaType.INTEGER_PRIMITIVE, minLargeMessageSize),
new SimpleValueSupport(SimpleMetaType.BOOLEAN_PRIMITIVE, blockOnNonDurableSend),
new SimpleValueSupport(SimpleMetaType.BOOLEAN_PRIMITIVE, blockOnAcknowledge),
new SimpleValueSupport(SimpleMetaType.BOOLEAN_PRIMITIVE, blockOnDurableSend),
new SimpleValueSupport(SimpleMetaType.BOOLEAN_PRIMITIVE, autoGroup),
new SimpleValueSupport(SimpleMetaType.BOOLEAN_PRIMITIVE, preAcknowledge),
new SimpleValueSupport(SimpleMetaType.LONG_PRIMITIVE, maxRetryInterval),
new SimpleValueSupport(SimpleMetaType.DOUBLE_PRIMITIVE, retryIntervalMultiplier),
new SimpleValueSupport(SimpleMetaType.INTEGER_PRIMITIVE, reconnectAttempts),
new SimpleValueSupport(SimpleMetaType.INTEGER_PRIMITIVE, scheduledThreadPoolMaxSize),
new SimpleValueSupport(SimpleMetaType.INTEGER_PRIMITIVE, threadPoolMaxSize),
new SimpleValueSupport(SimpleMetaType.STRING, groupId),
new SimpleValueSupport(SimpleMetaType.INTEGER_PRIMITIVE, initialMessagePacketSize),
new SimpleValueSupport(SimpleMetaType.BOOLEAN_PRIMITIVE, useGlobalPools),
new SimpleValueSupport(SimpleMetaType.LONG_PRIMITIVE, retryInterval),
new SimpleValueSupport(SimpleMetaType.STRING, connectionLoadBalancingPolicyClassName));
createResourceReport.setStatus(CreateResourceStatus.SUCCESS);
createResourceReport.setResourceKey(name);
createResourceReport.setResourceName(name);
}