WAS v8.5 > Administer applications and their environment > Administer web services (generally applicable) > Manage web services policy sets > Manage policies in a policy set > Modify policiesConfigure the WS-ReliableMessaging policy
When working with policy sets in the dmgr console, we can customize some policies.
This task assumes that you are working with a policy set to which the WS-ReliableMessaging policy has been added.
Do not edit the policies associated with the provided default policy sets. If we have to modify the reliable messaging policy settings, use a copy of a default policy set or create a new policy set.
At any stage - that is, before or after we have built your reliable web service application, or configured your policy sets - we can set a property that configures endpoints to only support clients that use reliable messaging. This setting is reflected by WS-Policy if engaged.
To configure the WS-ReliableMessaging policy for a given policy set, use the dmgr console to complete the following steps:
- In the navigation pane, click Services > Policy sets > Application policy sets > policy_set_name > WS-ReliableMessaging. The WS-ReliableMessaging settings form is displayed.
- Modify one or more of the following properties:
- Standard
Select the WS-ReliableMessaging specification to use for reliable transmission of your messages. WS-ReliableMessaging v1.1 is the default value. Select the WS-ReliableMessaging specification to use for reliable transmission of your messages. WS-ReliableMessaging v1.1 is the default value. Details of the supported WS-ReliableMessaging specifications are available at the following web addresses:
- The WS-ReliableMessaging specification v1.0, February 2005.
- The OASIS WS-ReliableMessaging specification v1.1, February 2007.
If you plan to invoke a .NET-based web service, select WS-ReliableMessaging v1.0.
- Deliver messages in the order they were sent
- Select this option if the sender of a request has to receive a response before it sends the next request, or to enable transaction support for inbound (provider) message exchanges as described in Providing transactional recoverable messaging through WS-ReliableMessaging, or to marginally increase reliability as described in A message is not recovered after a server becomes unavailable.
When enabled, WS-ReliableMessaging ensures the messages are made available to the requester application in the order they were sent. That is, if WS-ReliableMessaging cannot make a given message available, it will not make any subsequent messages available. However, the requester application must also poll for the messages in the order in which it is to receive them. For example:
- WS-ReliableMessaging makes message 1 available, then message 2, then message 3.
- The requester application uses asynchronous polling to deliberately poll for message 2, then message 3, then message 1. All three messages are available, so this polling out of order is successful.
Even though WS-ReliableMessaging is delivering the messages in the order they were sent, the requester application is choosing to receive them out of order.
- Quality of service
- Select the radio button for the required quality of service. The three choices are:
The default is unmanaged non-persistent.
- Unmanaged non-persistent
- We can configure web service applications to use WS-ReliableMessaging with a default in-memory store. This quality of service requires minimal configuration. However it is non-transactional and, although it allows for the resending of messages that are lost in the network, if a server becomes unavailable you will lose messages.
- Managed non-persistent
- This in-memory quality of service option uses a messaging engine to manage the sequence state, and messages are written to disk if memory is low. This quality of service allows for the re-sending of messages that are lost in the network, and can also recover from server failure. However, state is discarded after a messaging engine restart so in this case you will lose messages.
- Managed persistent
- This quality of service for asynchronous web service invocations is recoverable. This option also uses a messaging engine and message store to manage the sequence state. Messages are persisted at the web service requester server and at the web service provider server, and are recoverable if the server becomes unavailable. Messages that have not been successfully transmitted when a server becomes unavailable can continue to be transmitted after the server restarts.
All three qualities of service are supported when applications are deployed to the application server. Thin client and client container applications use the first option only.
In WebSphere Application Server v6.1, you could also configure whether to use the WS-MakeConnection protocol. This configuration option has now been removed from the dmgr console panel, because the product now automatically determines whether WS-MakeConnection is used, based on the following criteria:
- Whether you are using WS-ReliableMessaging v1.0 or v1.1.
- Whether the requester supports WS-MakeConnection.
- Whether the message exchange protocol is synchronous or asynchronous.
- Click OK.
- Save your changes to the master configuration.
Results
After we have customized the reliable messaging policy, the associated policy set uses this policy to help ensure reliable delivery of messages.
Subtopics
- WS-ReliableMessaging settings
For the WS-ReliableMessaging policy we can configure the version of the WS-ReliableMessaging standard to use, the order in which messages are delivered, and the required quality of service (the reliability level) for message delivery. WAS v8.5 can enforce these policies on inbound messages and applies them to outbound messages.- WS-ReliableMessaging policy binding
To configure a web service application to use WS-ReliableMessaging, you attach a policy set containing a WS-ReliableMessaging policy type. This policy type offers a range of qualities of service: managed persistent, managed non-persistent, or unmanaged non-persistent. The managed qualities of service, managed persistent and managed non-persistent, are supported by the service integration bus. Use this page to select the bus and messaging engine to use for the reliable messaging protocol state.
Related concepts:
Qualities of service for WS-ReliableMessaging
Related
Add assured delivery to web services through WS-ReliableMessaging
Configure endpoints to only support clients that use WS-ReliableMessaging
Configure a WS-ReliableMessaging policy set
WS-ReliableMessaging
Detecting and fixing problems with WS-ReliableMessaging
Tune web services reliable messaging applications
Add policies to policy sets
Delete policies from policy sets
Enable policies for policy sets
Disable policies from policy sets
Web services policies
Add and remove policies using wsadmin.sh
Create policy set attachments using wsadmin
Remove policy set attachments using wsadmin
Manage policy set attachments using wsadmin
Reference:
Application policy sets page
Application policy set settings