1, // reconnectAttempts
true, // failoverOnInitialConnection
"tst"); // groupID
HornetQQueueConnectionFactory cf = (HornetQQueueConnectionFactory)context.lookup("tst");
assertEquals(true, cf.isHA());
assertEquals("tst", cf.getClientID());
assertEquals(1, cf.getClientFailureCheckPeriod());
assertEquals(1, cf.getConnectionTTL());
assertEquals(1, cf.getCallTimeout());
assertEquals(1, cf.getMinLargeMessageSize());
assertEquals(true, cf.isCompressLargeMessage());
assertEquals(1, cf.getConsumerWindowSize());
assertEquals(1, cf.getConfirmationWindowSize());
assertEquals(1, cf.getProducerWindowSize());
assertEquals(1, cf.getProducerMaxRate());
assertEquals(true, cf.isBlockOnAcknowledge());
assertEquals(true, cf.isBlockOnDurableSend());
assertEquals(true, cf.isBlockOnNonDurableSend());
assertEquals(true, cf.isAutoGroup());
assertEquals(true, cf.isPreAcknowledge());
assertEquals(HornetQClient.DEFAULT_CONNECTION_LOAD_BALANCING_POLICY_CLASS_NAME, cf.getConnectionLoadBalancingPolicyClassName());
assertEquals(1, cf.getTransactionBatchSize());
assertEquals(1, cf.getDupsOKBatchSize());
assertEquals(true, cf.isUseGlobalPools());
assertEquals(1, cf.getScheduledThreadPoolMaxSize());
assertEquals(1, cf.getThreadPoolMaxSize());
assertEquals(1, cf.getRetryInterval());
assertEquals(1.0, cf.getRetryIntervalMultiplier());
assertEquals(1, cf.getMaxRetryInterval());
assertEquals(1, cf.getReconnectAttempts());
assertEquals(true, cf.isFailoverOnInitialConnection());
assertEquals("tst", cf.getGroupID());
stopServer();
startServer();
control = createManagementControl();
cf = (HornetQQueueConnectionFactory)context.lookup("tst");
assertEquals(true, cf.isHA());
assertEquals("tst", cf.getClientID());
assertEquals(1, cf.getClientFailureCheckPeriod());
assertEquals(1, cf.getConnectionTTL());
assertEquals(1, cf.getCallTimeout());
assertEquals(1, cf.getMinLargeMessageSize());
assertEquals(true, cf.isCompressLargeMessage());
assertEquals(1, cf.getConsumerWindowSize());
assertEquals(1, cf.getConfirmationWindowSize());
assertEquals(1, cf.getProducerWindowSize());
assertEquals(1, cf.getProducerMaxRate());
assertEquals(true, cf.isBlockOnAcknowledge());
assertEquals(true, cf.isBlockOnDurableSend());
assertEquals(true, cf.isBlockOnNonDurableSend());
assertEquals(true, cf.isAutoGroup());
assertEquals(true, cf.isPreAcknowledge());
assertEquals(HornetQClient.DEFAULT_CONNECTION_LOAD_BALANCING_POLICY_CLASS_NAME, cf.getConnectionLoadBalancingPolicyClassName());
assertEquals(1, cf.getTransactionBatchSize());
assertEquals(1, cf.getDupsOKBatchSize());
assertEquals(true, cf.isUseGlobalPools());
assertEquals(1, cf.getScheduledThreadPoolMaxSize());
assertEquals(1, cf.getThreadPoolMaxSize());
assertEquals(1, cf.getRetryInterval());
assertEquals(1.0, cf.getRetryIntervalMultiplier());
assertEquals(1, cf.getMaxRetryInterval());
assertEquals(1, cf.getReconnectAttempts());
assertEquals(true, cf.isFailoverOnInitialConnection());
assertEquals("tst", cf.getGroupID());
control.destroyConnectionFactory("test");
ObjectNameBuilder nameBuilder = ObjectNameBuilder.create(ConfigurationImpl.DEFAULT_JMX_DOMAIN);
assertFalse(mbeanServer.isRegistered(nameBuilder.getConnectionFactoryObjectName("test")));