mirror of https://github.com/apache/activemq.git
applied patch for http://issues.apache.org/activemq/browse/AMQ-959
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/branches/activemq-4.1@477173 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ea3456e791
commit
2e44c7e98c
|
@ -92,7 +92,7 @@ abstract public class Message extends BaseCommand implements MarshallAware, Mess
|
|||
copy.producerId = producerId;
|
||||
copy.transactionId = transactionId;
|
||||
copy.destination = destination;
|
||||
copy.messageId = messageId;
|
||||
copy.messageId = messageId.copy();
|
||||
copy.originalDestination = originalDestination;
|
||||
copy.originalTransactionId = originalTransactionId;
|
||||
copy.expiration = expiration;
|
||||
|
|
|
@ -139,4 +139,11 @@ public class MessageId implements DataStructure {
|
|||
public boolean isMarshallAware() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public MessageId copy(){
|
||||
MessageId copy = new MessageId(producerId, producerSequenceId);
|
||||
copy.key = key;
|
||||
copy.brokerSequenceId = brokerSequenceId ;
|
||||
return copy;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue