diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnector.java b/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnector.java index 3de2a4ab6b..270d47d529 100644 --- a/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnector.java +++ b/activemq-broker/src/main/java/org/apache/activemq/broker/TransportConnector.java @@ -76,6 +76,7 @@ public class TransportConnector implements Connector, BrokerServiceAware { private int maximumProducersAllowedPerConnection = Integer.MAX_VALUE; private int maximumConsumersAllowedPerConnection = Integer.MAX_VALUE; private PublishedAddressPolicy publishedAddressPolicy = new PublishedAddressPolicy(); + private boolean allowLinkStealing = false; private boolean warnOnRemoteClose = false; LinkedList peerBrokers = new LinkedList(); @@ -125,6 +126,7 @@ public class TransportConnector implements Connector, BrokerServiceAware { rc.setMaximumConsumersAllowedPerConnection(getMaximumConsumersAllowedPerConnection()); rc.setMaximumProducersAllowedPerConnection(getMaximumProducersAllowedPerConnection()); rc.setPublishedAddressPolicy(getPublishedAddressPolicy()); + rc.setAllowLinkStealing(allowLinkStealing); rc.setWarnOnRemoteClose(isWarnOnRemoteClose()); return rc; } @@ -602,6 +604,10 @@ public class TransportConnector implements Connector, BrokerServiceAware { return server.isAllowLinkStealing(); } + public void setAllowLinkStealing(boolean allowLinkStealing) { + this.allowLinkStealing = allowLinkStealing; + } + public boolean isAuditNetworkProducers() { return auditNetworkProducers; }