Error Handling

 

 

TLS Example

Properties setup:

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:

<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:

Â