diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/ft/MasterBroker.java b/activemq-core/src/main/java/org/apache/activemq/broker/ft/MasterBroker.java index 07e8091ac8..3e30eb739b 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/ft/MasterBroker.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/ft/MasterBroker.java @@ -328,7 +328,7 @@ public class MasterBroker extends InsertableMutableBrokerFilter{ protected void sendToSlave(Message message){ - if (message.isPersistent() && !message.isInTransaction()){ + if ( message.isResponseRequired() ){ sendSyncToSlave(message); }else{ sendAsyncToSlave(message); @@ -338,8 +338,7 @@ public class MasterBroker extends InsertableMutableBrokerFilter{ } protected void sendToSlave(MessageAck ack){ - - if (ack.isInTransaction()){ + if ( ack.isResponseRequired() ){ sendAsyncToSlave(ack); }else{ sendSyncToSlave(ack);