Este contenido no está disponible en el idioma seleccionado.
Chapter 9. Fault Handling
9.1. BPELInvoke Fault Handling Copiar enlaceEnlace copiado en el portapapeles!
Copiar enlaceEnlace copiado en el portapapeles!
Depending on how you choose to configure the system, you can receive the fault as an ESB message or allow it to cause an exception which aborts the action pipeline. The configuration property that determines which behavior is to be used used is called abortOnFault. The default value for this property is "true".
9.2. BPELInvoke Fault Handling Reference Copiar enlaceEnlace copiado en el portapapeles!
Copiar enlaceEnlace copiado en el portapapeles!
The following example material uses the
Loan Fault quickstart:
A WSDL fault reports two pieces of information: the fault type and the details of the fault. Each of these is returned in a separate part of message's body:
- Fault code:
javax.xml.namespace.QNameESB message body part:org.jboss.soa.esb.message.fault.detail.codeThis body part identifies the specific WSDL fault returned by the BPEL process.Warning
The version of the QName used by the JBoss Enterprise SOA Platform server is found in thelib/endorsed/stax-api.jarfile. (If this file is absent, you will encounter a class version exception.) - Fault code (as a textual representation of the QName).ESB message body part:
org.jboss.soa.bpel.message.fault.detail.codeThis body part returns the textual representation of the fault code's QName. This representation is of the form{namespace}localpart. (To convert it back into a QName, use thejavax.xml.namespace.QName.valueOf(String)method.) - Fault detailsESB message body part:
org.jboss.soa.esb.message.fault.detail.detailThis body part contains the textual representation of the message content associated with the fault.