Functionality
This sample shows how to handle errors or exceptions occured and handle them appropriately.
Default Behaviour
This component sends to the output port the same message that it receives on the input port.
Changes made in the component
In the service references under "servicerefs" element in ServiceDescriptor.xml
AddRemoveAdd an additional runtime-argument in ServiceDescriptor.xml under 'execution' element as shown below:
Make the following changes:
ElementsChanges RequiredErrorHandling.java Create field static String[] arguments;
Modify the method void main(String[]) to initialize 'arguments' variable.
Modify the void onException(JMSException) method of class ErrorHandlingExceptionListener to handle restarting the component the number of times as specified for the runtime argument 'retryCount'.ErrorHandlingMessageListener.java Modify the void onMessage(Message) method to handle the default behaviour of the component.
Overview
Content Tools
ThemeBuilder