Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Developer's Guide

- Previous: Connection Pooling
- Next: Load-Balanced Message Inflow

## Connection Failover

To specify whether the Application Server tries to reconnect to the primary broker if the connection is lost, set the `reconnect-enabled` attribute in the JMS service. To specify the number of retries and the time between retries, set the `reconnect-attempts` and `reconnect-interval-in-seconds` attributes, respectively.

If reconnection is enabled and the primary broker goes down, the Application Server tries to reconnect to another broker in the `AddressList`. The `AddressList` is updated whenever a JMS host configuration changes. The logic for scanning is decided by two JMS service attributes, `addresslist-behavior` and `addresslist-iterations`.

You can override these settings using JMS connection factory settings. For details, see the Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Administration Guide.

The Sun Java System Message Queue software transparently transfers the load to another broker when the failover occurs. JMS semantics are maintained during failover.

- Previous: Connection Pooling
- Next: Load-Balanced Message Inflow

- © 2010, Oracle Corporation and/or its affiliates