Each component instance in the cluster must have exclusive access to the resource, so a unique port number must be assigned to each instance. When you define service ports for the URL, use variables instead of actual port numbers in the soap:address element. This allows the client to direct HTTP requests to the default port, which is defined in the HTTP BC runtime properties. The value of the variable is resolved by the HTTP BC based on the configured default values used when the application was deployed.
If you reinstall the HTTP BC or drop it from the cluster and add it back in, you need to reconfigure the default ports for each component instance. The BC also needs to be configured for each server instance in the cluster.
In the WSDL files for the HTTP BC, change any hard-coded HTTP and HTTPS port numbers in the soap:address elements to variables.
Use the following variables:
${HttpDefaultPort} for the HTTP port
${HttpsDefaultPosrt} for the HTTPS port
For example, instead of using this URL:
<soap:address location="http://localhost:18181/Synchronous"/> |
Use the following URL:
<soap:address location="http://localhost:${HttpDefaultPort}/Synchronous"/> |
If it is not already enabled, enable the HTTP BC on the target cluster. Do the following to enable the BC:
To configure the BC, click the Configuration tab and then do the following:
In the View/Update Instance field, select the first instance to configure.
Verify the default values for the HTTP Port Number and the Default HTTPS Port Number properties.
These values are chosen automatically and must be different for each instance. If there is a port conflict, you can change the default port numbers but it is recommended that you use the default values.
Click Save.
Repeat the above steps for each instance in the cluster, verifying that the port numbers are unique for each instance.