WebSphere Application Server Version 6.1 Feature Pack for Web Services
             Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows, z/OS

             Personalize the table of contents and search results
             New or updated topic for this feature pack

Configuring cell-wide default bindings for policies using the wsadmin tool

You can use the Jython or Jacl scripting language to customize your cell-wide default binding configuration. Use this topic to edit binding configurations for all policy sets for a cell.

Before you begin

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.

.

About this task

Bindings are environment and platform specific information such as key store information, keys used for signature and encryption, or authentication information. You can use the inherited default binding for all policy sets or define custom bindings within an application.

Default binding is provided either at the cell level or application server level, and contains binding information used by all policy sets in the cell. The default bindings allow multiple policy sets to share a common set of binding. Binding that is defined in the application server level overrides the cell level definition. Use this topic to edit cell-wide default bindings.
Note: Use default binding configurations only for development and testing. Change signing and encryption keys before using your binding configurations in a production environment.

Procedure

  1. Launch the wsadmin scripting tool.
  2. Determine the policy to update.
    To view a list of all available policies for a specific policy set, use the listPolicyType command. For example:
    AdminTask.listPolicyTypes('[-policySet PolicySet1]')
  3. Retrieve the current binding configuration for the policy to determine the attributes to update.
    Use the getBinding command to display a Properties object containing all configuration attributes for a specific policy binding. Specify a Properties object for the -bindingLocation parameter using an empty Properties object. For example:
    AdminTask.getBinding('-policyType WSAddressing -bindingLocation ""')
    To return a specific configuration attribute for the policy, use the -attributes parameter. For example, enter this command to determine if the WSAddressing policy has workload management enabled:
    AdminTask.getBinding('-policyType WSAddressing -bindingLocation "" -attributes "[preventWLM]"')
    The command returns a properties object which contains the value of the requested attribute, preventWLM.
  4. Edit the binding configuration.
    Use the setBinding command to update your binding configuration for a policy. To specify that you are editing a cell-wide default binding, set the -bindingLocation parameter by passing a null or empty Properties object. You can further customize your binding with the following parameters:
    Parameter: Description: Data type:
    -policyType Specifies the policy of interest. String, required.
    -attributes Specifies the attribute values to update. This parameter can include all binding attributes for the policy or a subset to update. Properties, required.
    -replace Specifies whether to replace all of the existing binding attributes with the attributes specified in the command. Use this parameter to remove optional parts of the configuration for policies with complex data. The default value is false. Boolean, optional.

    You should use always the -attributes parameter when editing your binding configuration for cell-wide bindings. The following example disables workload management within the cell-wide default binding for the WSAddressing policy:

    AdminTask.setBinding('-policyType WSAddressing -bindingLocation "" -attributes "[preventWLM false]"')
  5. Save your configuration changes.
    AdminConfig.save()



In this information ...


IBM Redbooks, demos, education, and more


Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

IBM Suggests
Task topic    

Terms of Use | Feedback

Last updated: Nov 25, 2008 2:35:59 AM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.wsfep.multiplatform.doc/info/ae/ae/txml_wsfpcellbinding.html