activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1086280 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java
Date Mon, 28 Mar 2011 15:43:52 GMT
Author: dejanb
Date: Mon Mar 28 15:43:51 2011
New Revision: 1086280

URL: http://svn.apache.org/viewvc?rev=1086280&view=rev
Log:
ExpiredMessagesWithNoConsumerTest failure on slow machines

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java?rev=1086280&r1=1086279&r2=1086280&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java
Mon Mar 28 15:43:51 2011
@@ -453,8 +453,9 @@ public class FilePendingMessageCursor ex
         if (LOG.isDebugEnabled()) {
             LOG.debug("Discarding message " + message);
         }
-        broker.getRoot().sendToDeadLetterQueue(new ConnectionContext(new NonCachedMessageEvaluationContext()),
-                message, null);
+        ConnectionContext ctx = new ConnectionContext(new NonCachedMessageEvaluationContext());
+        ctx.setBroker(broker);
+        broker.getRoot().sendToDeadLetterQueue(ctx, message, null);
     }
 
     protected ByteSequence getByteSequence(Message message) throws IOException {



Mime
View raw message