mirror of https://github.com/apache/activemq.git
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:
parent
8443bd188a
commit
625f5e38a5
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue