Class FailoverJmsConnection

  • All Implemented Interfaces:
    AdaptrisComponent, AdaptrisConnection, ComponentLifecycle, ComponentLifecycleExtension, ConnectionComparator<JmsConnection>, JmsConnectionConfig, StateManagedComponent

    @ComponentProfile(summary="Connect to a JMS 1.1 broker supporting broker failover in a vendor independent way",
                      tag="connections,jms")
    public class FailoverJmsConnection
    extends JmsConnection
    JmsConnection implementation that wraps a list of concrete JMSConnection instances to provide failover.

    This class is designed for use with JMS Brokers that do not provide any transparent failover facility. For instance, SonicMQ provides transparent failover, so you should use that instead rather than having another concrete JMSConnection instance.

    Note the while this JmsConnection implementation still exposes connection configuration, these will be ignored, as all connection based activity is delegated to the underlying JmsConnections. The only configuration that overrides the underlying JmsConnection configuration is the connection-attempts and connection-wait.

    In the adapter configuration file this class is aliased as failover-jms-connection which is the preferred alternative to the fully qualified classname when building your configuration.