A Failover Group is a list of leaf endpoints grouped together for the purpose of passing an incoming message from one endpoint to another if a failover occurs. The first endpoint in failover group is considered the primary endpoint. An incoming message is first directed to the primary endpoint, and all other endpoints in the group serve as back-ups. If the primary endpoint fails, the next active endpoint is selected as the primary, and the failed endpoint is marked as inactive. Thus, it sends messages successfully as long as there is at least one active endpoint among the listed endpoints. The ESB switches back to the primary endpoint as soon as it becomes available. This behaviour is known as dynamic failover.
An endpoint failure occurs when an endpoint returns no response to a message. This could be as a result of the endpoint not having a listener on the port or a socket. Note that an endpoint which returns an error is not considered a failed endpoint.
You can configure the Failover endpoint using XML. Click on Switch to source view link in the Failover Group page.
The following page is opened by clicking Failover Group in the Add Endpoint tab of the Manage Endpoints page.
- Enter a name for the failover group endpoint, and if you want to add any properties, click Add Property and specify the properties.
- To add a child endpoint to the failover endpoint, click Add Child, and then select the required endpoint type from the list.
- Do the following:
- Add more child endpoints as needed, and then save the failover group endpoint.