SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 163 | Next

Frank Jennings, David Salter

"Building SOA-Based Composite Applications Using NetBeans IDE 6"

Catch any fault and deal with it
To be able to catch faults and manage them within a BPEL process, we first have to
add a Fault Handler to the process. This is achieved by right-clicking on the BPEL
process and selecting the Add | Fault Handlers menu option.
Selecting this option adds a blank fault handler to the BPEL process as shown below.
Within the empty fault handler we have three options.
collapse the diagrammatic representation of our fault handler
add a Catch handler for a specific fault
add a Catch-All handler for any fault.
??? ??? ???
Chapter 9
[ 191 ]
Only one Catch All handler is allowed per process.
Collapse the view
Add a Catch All fault handler
Add a Catch fault handler for a specific fault.
If we add a Catch All handler, there are no properties to specify. All we need to do
is complete the process by specifying which actions are to be performed as a result
of catching an exception. This is achieved in the same way as a BPEL process is
designed, by dragging activities on to the Catch activity within the BPEL designer.
If we want to handle specific faults in different ways, we can add specific Catch
handlers. This is analogous to having multiple catch statements within a piece of
Java code. Within Java code we can catch any number of specific exceptions.


Pages:
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175