}
}
if (failoverNotAllowed)
{
_connection.exceptionReceived(new AMQDisconnectedException(
"Server closed connection and reconnection not permitted.", _stateManager.getLastException()));
}
else if(failedWithoutConnecting)
{
if(initialConnectionException == null)
{
initialConnectionException = _stateManager.getLastException();
}
String message = initialConnectionException == null ? "" : initialConnectionException.getMessage();
_connection.exceptionReceived(new AMQDisconnectedException(
"Connection could not be established: " + message, initialConnectionException));
}
}
if (_logger.isDebugEnabled())