Transaction txn = null;
try
{
for(QueueEntry entry : queueEntries)
{
ServerMessage message = entry.getMessage();
BaseQueue queue = entry.getQueue();
if(message.isPersistent() && queue.isDurable())
{
if (_logger.isDebugEnabled())
{
_logger.debug("Dequeue of message number " + message.getMessageNumber() + " from transaction log. Queue : " + queue.getName());
}
if(txn == null)
{
txn = _messageStore.newTransaction();