diff --git a/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnectionFactory.java b/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnectionFactory.java index 8a34c2a4dd..68d54140ee 100755 --- a/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnectionFactory.java +++ b/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnectionFactory.java @@ -266,8 +266,8 @@ public class ActiveMQConnectionFactory extends JNDIBaseStorable implements Conne connection.setRedeliveryPolicy(getRedeliveryPolicy()); connection.setTransformer(getTransformer()); connection.setBlobTransferPolicy(getBlobTransferPolicy().copy()); - connection.setWatchTopicAdvisories(watchTopicAdvisories); - connection.setProducerWindowSize(producerWindowSize); + connection.setWatchTopicAdvisories(isWatchTopicAdvisories()); + connection.setProducerWindowSize(getProducerWindowSize()); connection.setWarnAboutUnstartedConnectionTimeout(getWarnAboutUnstartedConnectionTimeout()); transport.start();