Handling business faults in Mediators
Handling business faults within Mediators is a lot simpler than in BPEL. This is due to the role it plays within a composite. It's primary role (as covered in Chapter 10, oBay Introduction) is to act as a proxy to the composite, which means that it is responsible for receiving all incoming messages for a composite, validating and optionally transforming them before routing them to the appropriate component within the composite, and then routing any response back to the initial caller.
A business fault, by our definition, is just another valid response that can be returned by a component. Therefore, the role of the Mediator is to transform that fault from a component-specific one to one defined in the WSDL of ...
Get Oracle SOA Suite 11g R1 Developer's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.