Network Deployment (Distributed operating systems), v8.0 > Administer applications and their environment > Administer web services - Notification (WS-Notification) > Use WS-Notification for publish and subscribe messaging for web services > Accomplishing common WS-Notification tasks
Configure WS-Notification for reliable notification
To ensure that WS-Notification web service interactions are performed in a reliable way, you configure a JAX-WS based Version 7.0 WS-Notification service, JAX-WS client, and JAX-WS based WS-Notification consumer web service (through policy set functions) to use WS-ReliableMessaging.
This task assumes that we have created a v7.0 WS-Notification service and service point, and that we have created two JAX-WS applications:
- A JAX-WS client application, created from the WSDL of the new service point.
- A JAX-WS based WS-Notification consumer web service.
For more information about how to create these applications, see Use JAX-WS clients and web services with new v7.0 WS-Notification service points.
Reliable notification refers to the reliable transmission of messages to and from the IBM WS-Notification implementation. You enable this reliability to mitigate the problems inherent in network transmission protocols such as HTTP.
This reliability does not include the behavior of the application server itself. See WS-Notification and end-to-end reliability.
To enable reliable notification, you apply policy sets that include the WS-ReliableMessaging policy to the service point, service client, and service consumer applications.
We can configure policy sets for JAX-WS clients for both application server and client environments, including thin clients. See Manage policy sets .
Procedure
- Configure policy sets that meet your reliable messaging requirements.
We can reuse existing policy sets within your organization, use the WS-ReliableMessaging default policy sets provided by WAS, or create new policy sets. See Configure a WS-ReliableMessaging policy set by .
- Configure the Version 7.0 WS-Notification service and service points for reliable notification.
Apply policy sets that include the WS-ReliableMessaging policy.
- Configure the JAX-WS based WS-Notification client application so that it interacts reliably with its target web service by using WS-ReliableMessaging.
Apply policy sets that include the WS-ReliableMessaging policy, as described in Configure a v7.0 WS-Notification service with Web service QoS and Attach and binding a WS-ReliableMessaging policy set to a web service application by .
- Configure the JAX-WS based WS-Notification consumer web service application so that it interacts reliably with clients that attempt to communicate with it.
Apply policy sets that include the WS-ReliableMessaging policy, as described in Attach and binding a WS-ReliableMessaging policy set to a web service application by .
- Configure the WS-Notification client application (which has been configured to interact reliably) to communicate with the WS-Notification service point (which has similarly been configured to receive messages reliably).
- Prompt the WS-Notification client application to subscribe on behalf on the (reliably configured) WS-Notification consumer web service.
The WS-Notification consumer web service might also act as a client to perform its own subscription. This client would require additional policy set configuration if reliable interactions were required.
- Initiate notification message publications from the WS-Notification client application.
Results
The JAX-WS based v7.0 WS-Notification service point receives the notification messages in a reliable way from the WS-Notification client, and publishes the notification messages in a reliable way to the WS-Notification consumer web service.
WS-Notification
WS-Notification and policy set configuration
WS-ReliableMessaging default policy sets
Use WS-Notification for publish and subscribe messaging for web services
Secure WS-Notification
Configure a v7.0 WS-Notification service with Web service QoS
Manage policy sets by
Add assured delivery to web services through WS-ReliableMessaging
Related
WS-Notification troubleshooting tips