catify/catify-core — Issue #28: loop on exception
Author: catify
Created: 2011-11-23 07:33:19+00:00
State: open
Labels: major

If an exception (e.g. a correlation exception) inside the in pipeline of a receive node will thrown and you want to recall the process with the exception message, catify is looping. The problem is here, that the "CorrelationException" header has still the value yes, so even the correlation works a new exception will be thrown.

A workaround is to delete the header:

from("seda:corr_ex")
.setHeader(ReadCorrelationProcessor.CORRELATION_EXCEPTION_HEADER, constant(""))
.to("seda:init")
.delay(delay)
.to("seda:in");