LibraryToggle FramesPrintFeedback

The failover protocol facilitates quick recovery from network failures. When a recoverable network error occurs the protocol catches the error and automatically attempts to reestablish the JMS connection to an alternate broker endpoint without the need to recreate all of the JMS objects associated with the JMS connection. The failover URI is composed of one or more URIs that represent different broker endpoints. By default, the protocol randomly chooses a URI from the list and attempts to establish a network connection to it. If it does not succeed, or if it subsequently fails, a new network connection is established to one of the other URIs in the list.

For true high-availability and failover capabilities, you will need to set up your brokers in a network of brokers or a master/slave cluster. See Clustering Guide.

The failover transport allows you to set up failover in one of two ways:

  • Static—the client is configured with a static list of available URIs

  • Dynamic—the brokers push information about the available broker connections

Comments powered by Disqus