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.
About this task
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.
To enable reliable notification,
you apply policy sets that include the WS-ReliableMessaging policy
to the service point, service client, and service consumer applications.
You
can configure policy sets for JAX-WS clients for both application
server and client environments, including thin clients. For more information,
see Managing policy sets using the administrative console.
Procedure
-
Configure policy sets that meet your reliable messaging
requirements.
You can reuse existing policy sets within
your organization, use the WS-ReliableMessaging
default policy sets provided
by
WebSphere® Application Server, or create new policy
sets. For more information, see Configuring a WS-ReliableMessaging policy set by using the administrative console.
-
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 Configuring a Version 7.0 WS-Notification service with Web service QoS and Attaching and binding a WS-ReliableMessaging policy set to a web service application by using the administrative console.
-
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 Attaching and binding a WS-ReliableMessaging policy set to a web service application by using the administrative console.
-
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.
Note: 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 Version 7.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.