Use the -attributes parameter for the setBinding command to enable
or disable workload management for the WSAddressing binding. Application and
system policy sets use the WSAddressing policy and binding.
WSAddressing is an interoperability standard that you can use to create
endpoint references that you can distribute across firewalls
and intermediary nodes. For more information, see the W3C Candidate Recommendation
(CR) versions of the WS-Addressing core and SOAP specifications.
Use the following commands and parameters in
the PolicySetManagement group of the AdminTask object to customize your policy
set configuration.
- Use the attributes parameter for the getPolicyType and getBinding
commands to view the properties for your policy and binding configuration.
To get an attribute, pass the property name to the getPolicyType or getBinding
command.
- Use the attributes parameter for the setPolicyType and setBinding
commands to add, update, or remove properties from your policy and binding
configurations. To add or update an attribute, specify the property name and
value. The setPolicyType and setBinding commands update the value if the attribute
exists, or adds the attribute and value if the attribute does not exist. To
remove an attribute, specify the value as an empty string (""). The attributes parameter
accepts a properties object.
Note: If a property name or value supplied with the attributes parameter
is not valid, then the setPolicyType and setBinding commands fail with an
exception. The property that is not valid is logged as an error or warning
in the SystemOut.log file. However, the command exception might not
contain the detailed information for the property that caused the exception.
When the setPolicyType and setBinding commands fail, examine the SystemOut.log file
for any error and warning messages that indicate that the input for the attributes parameter
contains one or multiple properties that are not valid.
WSAddressing binding properties
Before you use the commands in this topic, verify that
you are using the most recent version of the wsadmin tool. The policy set
management commands that accept a properties object as the value for the attributes or bindingLocation parameters
are not supported on previous versions of the wsadmin tool. For example, the
commands do not run on a Version 6.1.0.x node.
Configure the WSAddressing
policy by specifying the following property with the setBinding command:
- preventWLM
- Specifies whether to prevent workload management for references to endpoints
that were created by the application programming interface (API) in a cluster
environment. Messages that target Endpoint References (EPRs) within a cluster
environment are workload managed by default.
- Preventing workload management routes messages that target EPRs to the
node or server on which the EPR was created. You might disable workload management
if the endpoint maintains the in-memory state, which has not been replicated
across other nodes or servers within the cluster.
For example, the following
command prevents workload management for the cell-wide default binding, from
the WSAddressing policy.
AdminTask.setBinding('[-bindingLocation "" -policyType WSAddressing
-attributes "[preventWLM true]"]')