417418419420421422423424425426427
boolean retryAllowed = true; Exception connectionException = null; while (!isConnected() && retryAllowed && brokerDetails != null) { ProtocolVersion pe = null; try { pe = makeBrokerConnection(brokerDetails); } catch (Exception e)
104105106107108109110111112113114
public void testInvalidOutgoingTransportProtocolVersion() throws Exception { try { Transport.getOutgoingTransportInstance(new ProtocolVersion((byte)0, (byte)0)); fail("Should have failed to load the transport for invalid protocol version"); } catch(IllegalArgumentException iae) { //expected, ignore