Faults can occur with JMS and MQ JMS bindings. Mechanisms are provided to handle these faults.
The argument that is expected to be passed to the JMSDataBinding and JMSObjectBinding depends on the interface operation and the Input, Output and fault types.
For faults, the outDataBindingType specified on the method binding is used. If none specified, the binding level dataBindingType is used for all serialization and deserialization.
If the fault type is simple, a string is set on the JMS DataBinding representing the fault message. In addition IsBusinessException is set to true.
If the fault type is a data object, then a data object is set on the JMS DataBinding which represents the fault message. This scenario requires the use of JMSDataBinding.
Messages containing faults are handled by the JMS data bindings. A Boolean header property IsBusinessException is intercepted by the data binding. If the value is true the data binding informs the runtime that the payload contains fault data.
If you are working with a custom data binding you need to take the following steps to handle faults correctly. Default implementations handle faults without user intervention.
Last updated: Wed 06 Dec 2006 07:08:08
(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)