5 Introduction to Using Web Services Reliable Messaging

An introduction and description of the usage of Web Services Reliable Messaging (WS-ReliableMessaging) with Oracle Infrastructure web services, to exchange messages reliably is detailed in this chapter.

It includes the following sections:

5.1 Web Services Reliable Messaging

Message exchanges between web services can be disrupted by various errors, including network, system, and software component errors or anomalies. Oracle Infrastructure web services support the messaging protocol defined by the Web Services Reliable Messaging specification to resolve these disruptions.

Once a web service or client sends a message, there is no immediate way, except by consulting network-level exceptions or SOAP fault messages, to determine whether the message was delivered successfully, if delivery failed and requires a retransmission, or if a sequence of messages arrived in the correct order.

To resolve these issues, Oracle Infrastructure web services support the messaging protocol defined by the Web Services Reliable Messaging (WS-ReliableMessaging) specification at http://docs.oasis-open.org/ws-rx/wsrm/v1.2/wsrm.pdf. This specification describes a protocol that makes message exchanges reliable. Reliable is defined as the ability to guarantee message delivery between the two Web Services. It ensures that messages are delivered reliably between distributed applications regardless of software component, system, or network failures. Ordered delivery is assured and automatic retransmission of failed messages does not have to be coded by each client application.

A reliable web service provides the following delivery assurances.


Table 5-1 Delivery Assurances for Reliable Messaging

Delivery Assurance Description

At Most Once

Messages are delivered at most once, without duplication. It is possible that some messages may not be delivered at all.

At Least Once

Every message is delivered at least once. It is possible that some messages are delivered more than once.

Exactly Once

Every message is delivered exactly once, without duplication.

In Order

Messages are delivered in the order that they were sent. This delivery assurance can be combined with one of the preceding three assurances.


Consider using reliable messaging if your web service is experiencing the following problems:

  • Network failures or dropped connections.

  • Messages are lost in transit.

  • Messages are arriving at their destination out of order.

5.2 Predefined Reliable Messaging Policies in Oracle Infrastructure Web Services

A set of predefined policies are automatically available when you install oracle fusion middleware and reliable messaging policy is one such type of predefined policy.

Reliable messaging is driven by policies and the Policy framework. As described in Understanding How Policies Attach to Oracle Infrastructure Web Services, OWSM provides a set of predefined policies that are automatically available when you install Oracle Fusion Middleware. The reliable messaging policies listed in Table 5-2 are available in this pre-defined set:


Table 5-2 Predefined Reliable Messaging Policies

Reliable Messaging Policy Description

oracle/no_reliable_messaging_policy

When directly attached to an endpoint or globally attached at a lower scope, effectively disables a globally attached Web Services Reliable Messaging policy at a higher scope.

oracle/reliable_messaging_policy

Configures web services reliable messaging on the web service and client.


For more information about the reliable messaging predefined policies, see "Reliable Messaging Policies" in Securing Web Services and Managing Policies with Oracle Web Services Manager.

5.3 About Attachment of Reliable Messaging Policies to Oracle Infrastructure Web Services

You can attach reliable messaging policies to Oracle Infrastructure web services or clients at design time using Oracle JDeveloper, or at runtime using the Fusion Middleware Control.

For more information, see Understanding How Policies Attach to Oracle Infrastructure Web Services.

5.4 Reliable Messaging Policies Configuration

You must configure the reliable messaging policies before you can use them in your environment.

The steps to configure reliable messaging policies are described in "Reliable Messaging Policies" in Securing Web Services and Managing Policies with Oracle Web Services Manager.