Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.Ce contenu n'est pas disponible dans la langue sélectionnée.
20.2. Enabling HA with Static Failover
Overview Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
To enable HA with static failover, you must do the following:
Encode replica details in your service WSDL file Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
You must encode the details of the replicas in your cluster in your service WSDL file. Example 20.1, “Enabling HA with Static Failover: WSDL File” shows a WSDL file extract that defines a service cluster of three replicas.
Example 20.1. Enabling HA with Static Failover: WSDL File
The WSDL extract shown in Example 20.1, “Enabling HA with Static Failover: WSDL File” can be explained as follows:
- 1
- Defines a service,
ClusterService
, which is exposed on three ports:Replica1
Replica2
Replica3
- 2
- Defines
Replica1
to expose theClusterService
as a SOAP over HTTP endpoint on port9001
. - 3
- Defines
Replica2
to expose theClusterService
as a SOAP over HTTP endpoint on port9002
. - 4
- Defines
Replica3
to expose theClusterService
as a SOAP over HTTP endpoint on port9003
.
Add the clustering feature to your client configuration Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
In your client configuration file, add the clustering feature as shown in Example 20.2, “Enabling HA with Static Failover: Client Configuration”.
Example 20.2. Enabling HA with Static Failover: Client Configuration