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

Deleting custom bindings from your configuration using the wsadmin tool

You can use the Jython or Jacl scripting language to delete a custom application or system policy set binding from your configuration. You cannot delete cell-level default bindings.

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

Policy set bindings specify the details about how your quality of service (QoS) is configured. For example, a policy set attachment determines that sign, encrypt, or reliable messaging is enabled. The policy set binding specifies how the protection is configured, for example, the path of the keystore file, the class name of the token generator, or the Java Authentication and Authorization Service (JAAS) configuration name.

For application policy sets, policy set bindings exist at the cell level and server level using default binding configurations, or at the application level using custom binding configurations. For system policy sets, bindings exist at the cell level and server level, or you can create custom bindings.

Use the following procedure to delete custom bindings for trust policy sets and application level bindings for application policy sets:

Procedure

  1. Launch the wsadmin scripting tool.
  2. Retrieve the current binding configuration for the policy of interest.
    Use the getBinding command to display a Properties object that contains all configuration attributes for a specific binding. Specify the location of the binding by passing a properties object using the bindingLocation parameter and the following reference table:
    Type of Binding Value for the -bindingLocation Parameter
    Application -bindingLocation "[[application application1][attachmentId 123]]"
    Trust service -bindingLocation "[[attachmentId 123]]"
    In this example, the command displays the current binding configuration for the WSAddressing policy, with the 123 attachmentId, for the application1 application:
    AdminTask.getBinding('[-policyType WSAddressing -bindingLocation 
    "[[application application1][attachmentId 123]]"]')
  3. Remove the binding of interest from each attachment.
    You cannot remove a binding from your configuration if that binding is referenced by one or more attachments. Modify and use the following example command to remove a binding from an attachment:
    AdminTask.setBinding('[-bindingLocation "[[application application1][attachmentId 123]]" 
    -remove true]')
  4. Delete the binding of interest.

    Use the setBinding command to delete a custom binding configuration. Specify the binding of interest with the -bindingName parameter, an asterisk (*) for the -attachmentId property, and set the -remove parameter to true. The following example setBinding command removes the WSAddressing123binding application policy set binding:

    AdminTask.setBinding('[-attachmentType application -bindingName WSAddressing123binding 
    -bindingLocation "[[application application1][attachmentId *]]" -remove true]')
    The following example setBinding command removes the customTrust trust service binding:
    AdminTask.setBinding('[-attachmentType "system/trust" -bindingName customTrust 
    -bindingLocation "[attachmentId *]" -remove true]')
  5. Save your configuration changes.
    Use the following Jython command to save your configuration changes:
    AdminConfig.save()

Results

The custom binding of interest is removed from your configuration.



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_wsfpdelcstmbind.html