set sync sent to false for matcher messages to wonnode
@@ -143,10 +143,10 @@ public class ActiveMqWonNodeConnectionFactory
private static ActiveMQConnectionFactory createConnectionFactory(final String brokerUri, final KeyManager keyManager, final TrustManager trustManager) {
ActiveMQSslConnectionFactory connectionFactory = new ActiveMQSslConnectionFactory(brokerUri);
- // for non-persistent messages setting this makes it slow, but ensures that a producer is immediately informed
+ // for non-persistent messages setting "AlwaysSyncSend" to true makes it slow, but ensures that a producer is immediately informed
// about the memory issues on broker (is blocked or gets exception depending on <systemUsage> config)
// see more info http://activemq.apache.org/producer-flow-control.html
- connectionFactory.setAlwaysSyncSend(true);
+ connectionFactory.setAlwaysSyncSend(false);
connectionFactory.setKeyAndTrustManagers(new KeyManager[]{keyManager}, new TrustManager[]{trustManager},
null);
return connectionFactory;
