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:
Jonas B. Lim 2006-11-20 13:43:01 +00:00
parent ea3456e791
commit 2e44c7e98c
2 changed files with 8 additions and 1 deletions

View File

@ -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;

View File

@ -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;
}
}