activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r477173 - in /incubator/activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/command: Message.java MessageId.java
Date Mon, 20 Nov 2006 13:43:02 GMT
Author: jlim
Date: Mon Nov 20 05:43:01 2006
New Revision: 477173

URL: http://svn.apache.org/viewvc?view=rev&rev=477173
Log:
applied patch for http://issues.apache.org/activemq/browse/AMQ-959

Modified:
    incubator/activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/command/Message.java
    incubator/activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/command/MessageId.java

Modified: incubator/activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/command/Message.java
URL: http://svn.apache.org/viewvc/incubator/activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/command/Message.java?view=diff&rev=477173&r1=477172&r2=477173
==============================================================================
--- incubator/activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/command/Message.java
(original)
+++ incubator/activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/command/Message.java
Mon Nov 20 05:43:01 2006
@@ -92,7 +92,7 @@
         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;

Modified: incubator/activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/command/MessageId.java
URL: http://svn.apache.org/viewvc/incubator/activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/command/MessageId.java?view=diff&rev=477173&r1=477172&r2=477173
==============================================================================
--- incubator/activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/command/MessageId.java
(original)
+++ incubator/activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/command/MessageId.java
Mon Nov 20 05:43:01 2006
@@ -139,4 +139,11 @@
     public boolean isMarshallAware() {
         return false;
     }
+    
+    public MessageId copy(){
+        MessageId copy = new MessageId(producerId, producerSequenceId);
+        copy.key = key;
+        copy.brokerSequenceId = brokerSequenceId ;
+        return copy;
+    }      
 }



Mime
View raw message