channel.clearCommands();
for (Map.Entry<Long, ClientConsumerInternal> entry : consumers.entrySet())
{
SessionQueueQueryResponseMessage queueInfo = entry.getValue().getQueueInfo();
// We try and recreate any non durable queues, since they probably won't be there unless
// they are defined in hornetq-configuration.xml
// This allows e.g. JMS non durable subs and temporary queues to continue to be used after failover
if (!queueInfo.isDurable())
{
CreateQueueMessage createQueueRequest = new CreateQueueMessage(queueInfo.getAddress(),
queueInfo.getName(),
queueInfo.getFilterString(),
false,
queueInfo.isTemporary(),
false);
sendPacketWithoutLock(createQueueRequest);
}