ExpiredMessagesWithNoConsumerTest failure on slow machines

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1086280 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2011-03-28 15:43:51 +00:00
parent 8443bd188a
commit 625f5e38a5
1 changed files with 3 additions and 2 deletions

View File

@ -453,8 +453,9 @@ public class FilePendingMessageCursor extends AbstractPendingMessageCursor imple
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 {