mirror of https://github.com/apache/activemq.git
additional fix for https://issues.apache.org/activemq/browse/AMQ-2086 and a couple of improvements for network tests
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@738421 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
39dd6b914a
commit
2bda17a6b0
|
@ -388,9 +388,6 @@
|
|||
<!-- These are load tests so take too long to run -->
|
||||
<exclude>**/load/*</exclude>
|
||||
|
||||
<!-- http://jira.activemq.org/jira/browse/AMQ-594 -->
|
||||
<exclude>**/SimpleNetworkTest.*</exclude>
|
||||
|
||||
<!-- http://jira.activemq.org/jira/browse/AMQ-610 -->
|
||||
<exclude>**/FanoutTransportBrokerTest.*</exclude>
|
||||
|
||||
|
|
|
@ -441,7 +441,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br
|
|||
if (AdvisorySupport.isConsumerAdvisoryTopic(message.getDestination())) {
|
||||
serviceRemoteConsumerAdvisory(message.getDataStructure());
|
||||
} else {
|
||||
if (!isPermissableDestination(message.getDestination())) {
|
||||
if (!isPermissableDestination(message.getDestination(), true)) {
|
||||
return;
|
||||
}
|
||||
if (message.isResponseRequired()) {
|
||||
|
@ -853,12 +853,20 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br
|
|||
rc[brokerPath.length] = idToAppend;
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
protected boolean isPermissableDestination(ActiveMQDestination destination) {
|
||||
return isPermissableDestination(destination, false);
|
||||
}
|
||||
|
||||
protected boolean isPermissableDestination(ActiveMQDestination destination, boolean allowTemporary) {
|
||||
// Are we not bridging temp destinations?
|
||||
if (destination.isTemporary() && !configuration.isBridgeTempDestinations()) {
|
||||
return false;
|
||||
}
|
||||
if (destination.isTemporary()) {
|
||||
if (allowTemporary) {
|
||||
return true;
|
||||
} else {
|
||||
return configuration.isBridgeTempDestinations();
|
||||
}
|
||||
}
|
||||
|
||||
DestinationFilter filter = DestinationFilter.parseFilter(destination);
|
||||
ActiveMQDestination[] dests = excludedDestinations;
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<beans>
|
||||
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
|
||||
|
||||
<broker brokerName="localBroker" persistent="true" useShutdownHook="false" xmlns="http://activemq.apache.org/schema/core">
|
||||
<broker brokerName="localBroker" persistent="false" useShutdownHook="false" xmlns="http://activemq.apache.org/schema/core">
|
||||
<transportConnectors>
|
||||
<transportConnector uri="tcp://localhost:61616"/>
|
||||
</transportConnectors>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<beans>
|
||||
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
|
||||
|
||||
<broker brokerName="remoteBroker" persistent="true" useShutdownHook="false" monitorConnectionSplits="true" xmlns="http://activemq.apache.org/schema/core">
|
||||
<broker brokerName="remoteBroker" useJmx="false" persistent="false" useShutdownHook="false" monitorConnectionSplits="true" xmlns="http://activemq.apache.org/schema/core">
|
||||
<transportConnectors>
|
||||
<transportConnector uri="tcp://localhost:61617"/>
|
||||
</transportConnectors>
|
||||
|
|
Loading…
Reference in New Issue