You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
say we have 2 connection factories s1 and s2, initially we connect ok to s1
however a subsequent send results in an error on s1 (eg disconnection), findAConnection is called to establish a new connection
1/ we have lastFactoryToTry = s1, we enter the loop and try nextfactory = s2 but connection to this fails and throws exception. in the exception handling lastFactoryToTry does not equal nextfactory so we reset iterator and loop round.
2/ nextfactory now =s1 connection fails and throws exception. in the exception handling !this.factoryIterator.hasNext() is not true so we loop round. back to 1/