WebSphere

This information applies to feature pack. To use what is described, you must have installed the optional feature pack Creating modules that can use policies

Use WebSphere® Integration Developer to create a module containing a Policy Resolution mediation primitive.

About this task
You can control service requests dynamically, by using policies that allow you to override module properties at run time. Such policies are sometimes referred to as mediation policies and are stored in WebSphere Service Registry and Repository (WSRR). You can define one or more policies for your module, and each policy can override one or more module properties. Optionally, you can create one or more gate conditions on each policy attachment. At run time, gate conditions are compared to the condition values in the message; all of the gate conditions must be met before an associated policy can be used. Whether property values are overridden for a particular service interaction depends on the message being processed and the Mediation policy processing model defined in the information center.
Procedure
  1. Use WebSphere Integration Developer to create a module containing a Policy Resolution mediation primitive. The Policy Resolution primitive must be placed before any primitives whose properties you want to modify.
  2. Configure the Policy Resolution primitive.
    1. Specify the WSRR definition to use, or take the default definition.
    2. Optional: If you want to use a gate condition, create a Policy condition name that matches the gate condition on the policy. Specify where the condition value is found in the message, by providing an XPath expression. For example, you could create a Policy condition name of Age and an XPath expression of /body/priceChecker/request/Age. At run time, the value of condition Age would be set from /body/priceChecker/request/Age.
  3. Promote any module properties that you want to override dynamically, using policies.
  4. Deploy your module to the run time.
  5. Ensure that your run time has a definition for the WSRR that you want to use.
  6. Load the EAR file, containing your SCA module, into WSRR.
Results
You can now use Business Space widgets to browse your module and create policies for it.

task Task topic

Terms of use | Feedback


Timestamp icon Last updated: 23 June 2009


http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/topic/com.ibm.websphere.wbpm.fep.psesb.620.doc/doc/tadm_prereqpolicies.html
Copyright IBM Corporation 2005, 2009. All Rights Reserved.
This information center is powered by Eclipse technology (http://www.eclipse.org).