Gordon Sim wrote:
Shan Wang wrote:
As I understand it, FailoverManager::execute() will try to reconnect if
no open connection is available, by using the last known brokers
list(because it uses connect() which has an empty brokers url list?),
and if that succeeded, a new session will be created and
Command::execute() will be called. And if the reconnect failed, it will
through an exception.
That is correct; when the current connection fails it will try to
reconnect using the list of known urls retrieved when connected. It
will try each of these in turn then fail if it can't connect to any of
them.
Another thing is to make sure you have configured a heartbeat, so the
fail-over happens on
heartbeat interval and not on socket timeout.
regards
Carl.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]