mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@604700 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5582cc1751
commit
a32832f4cb
|
@ -394,7 +394,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge {
|
|||
ConnectionError ce = (ConnectionError)command;
|
||||
serviceRemoteException(ce.getException());
|
||||
} else {
|
||||
if (configuration.isDuplex() || createdByDuplex) {
|
||||
if (isDuplex()) {
|
||||
if (command.isMessage()) {
|
||||
ActiveMQMessage message = (ActiveMQMessage)command;
|
||||
if (AdvisorySupport.isConsumerAdvisoryTopic(message.getDestination())) {
|
||||
|
@ -569,7 +569,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge {
|
|||
LOG.trace("bridging " + configuration.getBrokerName() + " -> " + remoteBrokerName + ": " + message);
|
||||
}
|
||||
|
||||
if (!message.isResponseRequired()) {
|
||||
if (!message.isResponseRequired() || isDuplex()) {
|
||||
|
||||
// If the message was originally sent using async
|
||||
// send, we will preserve that QOS
|
||||
|
@ -933,5 +933,9 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge {
|
|||
public long getEnqueueCounter() {
|
||||
return enqueueCounter.get();
|
||||
}
|
||||
|
||||
protected boolean isDuplex() {
|
||||
return configuration.isDuplex() || createdByDuplex;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue