queues.put(queueName, queue);
}
long messageId = rs.getLong(2);
maxId = Math.max(maxId, messageId);
AMQMessage message = msgMap.get(messageId);
if(message != null)
{
message.incrementReference();
}
else
{
message = new AMQMessage(messageId, this, messageHandleFactory, txnContext);
msgMap.put(messageId,message);
}
if (_logger.isDebugEnabled())
{
_logger.debug("On recovery, delivering " + message.getMessageId() + " to " + queue.getName());
}
if (_logger.isInfoEnabled())
{
Integer count = queueRecoveries.get(queueName);