The Failover Endpoints is an endpoint that send messages to the listed endpoints with the following failover behavior. At the start the first listed endpoint is selected as the primary and all other endpoints are treated as backups. Incoming messages are always sent only to the primary endpoint. If 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 endpoint, and the failed endpoint is marked as inactive. Thus, it sends messages successfully Thus, failover group ensures that a message is delivered as long as there is at least one active endpoint among the listed endpoints. Default failover endpoint behavior is dynamic failover. The ESB switches back to the primary endpoint as soon as it becomes available. This behaviour is known as dynamic failover.
Info |
---|
An endpoint failure occurs when an endpoint is unable to invoke a service. Note that an endpoint which responds with an error is not considered a failed endpoint. |
...
Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
XML Configuration
Info | ||
---|---|---|
| ||
You can configure the Failover endpoint using XML. Click on the "Switch to source view" link in the "Failover Group" page. |
Code Block | ||
---|---|---|
| ||
<failover> <endpoint .../>+ </failover> |
...
UI Configuration
...
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 any properties, click click Add Property and and specify the properties.You are now ready to
- To add a child endpoints endpoint to this failover group.
- Click Add Child.
A shortcut menu with the available endpoint types appears. - Select the type of child endpoint you are adding. A tab with the fields relevant to the selected endpoint type appears.the failover endpoint, click Add Child, and then select the required endpoint type from the list.
- Do the following:
- Enter the basic details for the child endpoint, such as the name and address.
- Click Click Show Advanced Options and and specify the the advanced options you you want for this endpoint.
- To add properties to to the child endpoint, click click Add Property and and specify the properties.
- Click Click Update.
- Add more child endpoints as needed, and then save the failover group endpoint.
...