}
catch (Exception e)
{
log.warn(e.getMessage(), e);
throw new HornetQException(HornetQException.NOT_CONNECTED, "Failed to connect to any static connectors", e);
}
if (csf == null && !isClosed())
{
log.warn("Failed to connecto to any static connector, throwing exception now");
throw new HornetQException(HornetQException.NOT_CONNECTED, "Failed to connect to any static connectors");
}
if (log.isDebugEnabled())
{
log.debug("Returning " + csf + " on " + ServerLocatorImpl.this);
}