mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@656688 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
049ce286c7
commit
8b33c1c640
|
@ -1599,6 +1599,8 @@ public class ActiveMQSession implements Session, QueueSession, TopicSession, Sta
|
|||
msg.setMessageId(new MessageId(producer.getProducerInfo().getProducerId(), sequenceNumber));
|
||||
message.setJMSMessageID(msg.getMessageId().toString());
|
||||
}
|
||||
//clear the brokerPath in case we are re-sending this message
|
||||
msg.setBrokerPath(null);
|
||||
|
||||
msg.setJMSDestination(destination);
|
||||
msg.setJMSDeliveryMode(deliveryMode);
|
||||
|
|
|
@ -134,10 +134,7 @@ public abstract class Message extends BaseCommand implements MarshallAware, Mess
|
|||
copy.brokerInTime = brokerInTime;
|
||||
copy.brokerOutTime = brokerOutTime;
|
||||
copy.memoryUsage=this.memoryUsage;
|
||||
// copying the broker path breaks networks - if a consumer re-uses a
|
||||
// consumed
|
||||
// message and forwards it on
|
||||
// copy.brokerPath = brokerPath;
|
||||
copy.brokerPath = brokerPath;
|
||||
|
||||
// lets not copy the following fields
|
||||
// copy.targetConsumerId = targetConsumerId;
|
||||
|
|
Loading…
Reference in New Issue