Running the example
- At a command prompt/shell, navigate to the apps/mule-example-errorhandler under the Mule distribution root.
- Edit the classes/email.properties file with the SMTP settings for your environment. These settings are required for the Error Handler example to send an alert email.
- Start mule from the $MULE_HOME directory. The Mule startup screen displays.
- Open another console window and navigate to the apps/mule-example-errorhandler/test-data/out directory. This directory contains three files : MuleException.xml, BusinessException.xml, and FatalException.xml.
- Move each of these files into the ../in directory one by one to see what happens. Each exception type will trigger a different endpoint. Note that the FatalException.xml file will cause Mule to send an email using the properties you specified in conf/email.properties.
- To stop Mule, type 'CTRL-C' in the Mule console window.
Additional Information
Complete documentation for this example can be found here.