Handling database failures in a Select transform
You can configure a Failure transform for each Select transform that you define in a message map to handle explicitly SQL database exceptions. By default, the Mapping node throws database exceptions that can be handled by other nodes in the message flow.
Before you begin
Configure the Select transform in a message map. For more information, see Configuring the Select transform in a message map.
About this task
By default, the Mapping node throws database exceptions that the SOAPInput node catches and automatically uses to build a SOAP fault to return to the client.
In the scenario, you use an optional Failure transform to process the first SQL exception that might be thrown from the Select transform database transaction. You build a SOAPFault to include the database exception detail and the Name and Country elements used for the search of an address which failed.
A Failure transform has a nested map. This nested map is where you transform the input and output elements of the Message Assembly to define how to handle failure.
Procedure
To configure the Failure transform in the scenario, complete the following steps:
Results
You have successfully completed the development steps of the scenario.
Configure the JDBC connection at run time. For more information, see Configuring a database to be available at run time.