log.warn("NodeID=" + targetNodeID +
" is not available on the topology. Retrying the connection to that node now");
return null;
}
factory.setReconnectAttempts(0);
factory.getConnection().addFailureListener(new FailureListener()
{
public void connectionFailed(HornetQException exception, boolean failedOver)
{
if (exception.getCode() == HornetQException.DISCONNECTED)