On 06/27/2011 08:19 PM, Kerry Bonin wrote:
I was wondering if there was any existing way to know when a broker failover occurs (and which broker is active), other then hacking the client?
In a clustered broker you can get notifications of changes to cluster membership. However other than that the c++ client library doesn't have any callbacks to notify of automatic reconnection attempts or to determine where a connection is connected to at any point in time (assuming it is connected).
I don't like callbacks, at least at this level of the API, but I would agree that these would be nice concerns to address. Having some way to get some form of peer address would be nice, as would a way to be notified of disconnect and reconnect events.
(Apologies for the delayed response on user thread btw) --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected]
