Modify policies using the administrative console
With your policy sets, we can define policies for WS-Addressing, WS-Security, WS-ReliableMessaging, WS-Transaction, HTTP transport, Java Messaging Service (JMS) transport, and SSL transport. The policies for all but WS-Security are relatively straightforward to define.
The provided default policy sets cannot be edited. We can create a copy of the default policy set or create a completely new policy set in order to specify the policies for it.
Polices are associated with policy sets, so we can change an instance of a policy for a particular policy set.
Tasks
- Select the policy set containing the policy we want to modify. To customize the policies associated with a policy set, from the administrative console, click:
- Services > Policy sets > Application policy sets >policy_set_name. Click a policy name in the Policies table.
- Or Services > Policy sets > System policy sets >policy_set_name. Click a policy name in the Policies table.
- Modify the settings. Depending on which Policy we choose, different settings can be modified.
- [Optional] If the policy to be modified is not already in the Policies table, click Add and select a policy from the list to modify.
- Save the changes we have made. Once we change the settings on a policy, we need to save the changes to return to the policy set.
The policy set configuration is saved with the selected modifications.
Example
We have created a copy of the WSReliableMessaging persistent policy set and named it WSRM_p1. You want to change the settings on the WSReliableMessaging policy that is included, by default, in the copy of this policy set. So you click the WSRM_p1 policy set from the Application policy sets window and then click the WSReliableMessaging policy from the Policies table. We can then alter the following settings:
Save our changes and return to the Application policy sets window for the WSRM_p1 policy set.
- Standard
- The default setting is WSReliableMessaging 1.1.
- Deliver messages in the order that they were sent
- The default setting is false. True or false.
- Quality of service
- The default is Unmanaged non-persistent
What to do next
Use the policy set as we have configured or we can change the bindings, attach or detach the policy set from applications.Because this policy set specifies managed persistent quality of service, we have to define bindings to the service integration bus and messaging engine to use to manage the WS-ReliableMessaging state. Attach and bind a WS-ReliableMessaging policy set to a web service application using the administrative console or the wsadmin tool.
Subtopics
- Configure the WS-ReliableMessaging policy
When working with policy sets in the administrative console, we can customize some policies.- Configure the WS-Addressing policy
When working with policy sets in the administrative console, we can add and configure policies to enable standard addressing of web services.- Configure the HTTP transport policy
When working with policy sets in the administrative console, we can customize policies to ensure message security. We can customize the Hypertext Transfer Protocol (HTTP) transport policy configuration or use the policy as it is provided with the default settings.- Configure the JMS transport policy
We can define a JMS transport policy configuration if we are using SOAP over JMS with the JAX-WS applications.- Configure the WS-Transaction policy
When we work with policy sets in the administrative console, we can configure the WS-Transaction policy type for the WS-AtomicTransaction (WS-AT) and the WS-BusinessActivity (WS-BA) protocols. We can configure whether a client propagates, and a server receives, a WS-AT context, and whether a client propagates, and a server receives, a WS-BA context.- Configure the WS-Security policy
When working with policy sets in the administrative console, we can customize policies to ensure message security. The WS-Security policy can be configured to apply a message security (WS-Security) profile to requests. Message security policies are applied to requests and enforced on responses to support interoperability.- Configure the Custom properties policy
When working with policy sets in the administrative console, we can customize policies to set generic properties that are not supported in other policy types. We must customize the Custom properties policy configuration because all properties within the policy are user-defined.
Attaching a policy set to a service artifact Manage policy sets Add policies to policy sets Deleting policies from policy sets Enable policies for policy sets Disable policies from policy sets Web services policies Add and remove policies Create policy set attachments Remove policy set attachments Manage policy set attachments Attaching and binding a WS-ReliableMessaging policy set to a web service application by Attaching and binding a WS-ReliableMessaging policy set to a web service application Application policy sets collection Application policy set settings