qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raj...@apache.org
Subject svn commit: r1057462 - /qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java
Date Tue, 11 Jan 2011 03:05:32 GMT
Author: rajith
Date: Tue Jan 11 03:05:32 2011
New Revision: 1057462

URL: http://svn.apache.org/viewvc?rev=1057462&view=rev
Log:
QPID-2995
The redelivered flag is now set on messages that are restransmitted after failover.

Modified:
    qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java

Modified: qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java?rev=1057462&r1=1057461&r2=1057462&view=diff
==============================================================================
--- qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java (original)
+++ qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java Tue Jan
11 03:05:32 2011
@@ -260,6 +260,10 @@ public class Session extends SessionInvo
                     m = new ExecutionSync();
                     m.setId(i);
                 }
+                else if (m instanceof MessageTransfer)
+                {
+                    ((MessageTransfer)m).getHeader().get(DeliveryProperties.class).setRedelivered(true);
+                }
                 sessionCommandPoint(m.getId(), 0);
                 send(m);
             }



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message