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:Replica1Replica2Replica3
- 2
- Defines
Replica1to expose theClusterServiceas a SOAP over HTTP endpoint on port9001. - 3
- Defines
Replica2to expose theClusterServiceas a SOAP over HTTP endpoint on port9002. - 4
- Defines
Replica3to expose theClusterServiceas 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