config = StompConfig( uri='failover:(tcp://server1:61613,tcp://server2:61613,tcp://server3:61613)?randomize=false' )
st = Stomp( config )
try:
st.connect()
except StompConnectTimeout as e:
logging.error( "Error connecting: %s" % e )
except StompConnectionError as e:
logging.error( "Error connecting: %s" % e )
Always yields:
WARNING:stompest.sync.client:Could not connect to server1:61613 [Could not establish connection [[Errno 111] Connection refused]]
ERROR:stompest.sync.client:Reconnect failed [Reconnect timeout: 0 attempts]
ERROR:root:Error connecting: Reconnect timeout: 0 attempts
Does failover not take place until a connection has been made? I would think it would happen here as well, trying the next URI until one connects or list end is reached. Any ideas?
Thanks!