RecoveryAwareAMQConnection newConnection() throws IOException
{
IOException lastException = null;
for (Address addr : shuffle(addrs)) {
try {
FrameHandler frameHandler = factory.create(addr);
RecoveryAwareAMQConnection conn = new RecoveryAwareAMQConnection(params, frameHandler);
conn.start();
return conn;
} catch (IOException e) {
lastException = e;