Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Include Page
IM:Error Handling
IM:Error Handling

TLS Example

Properties setup:

Code Block
integration.route-error-handling.enabled=true
integration.route-error-handling.maximumRedeliveries=3
integration.route-error-handling.enableSendingMail=true
integration.route-error-handling.email.mailTo=michal.stepan@pricefx.com
integration.route-error-handling.email.smtpHost=mail.pricefx.eu
integration.route-error-handling.email.smtpPort=587
integration.route-error-handling.email.smtpAuth=true
integration.route-error-handling.email.smtpAuthUsername=xxx
integration.route-error-handling.email.smtpAuthPassword=xxx
integration.route-error-handling.email.smtpTls=true

Route:

Code Block
languagexml
        <route >
            <from uri="timer:foo?repeatCount=1"/>
            <throwException message="Olala" exceptionType="java.lang.RuntimeException"/>
            <log message="Finito"/>
        </route>

Route contains failure and throws exception. The processing is retried 3 times. If the processing is still not successful, email is sent via mail.pricefx.eu TLS:

...