Hello,

I'm trying to let SI send the message to an errorChannel when an Exception occurs in my synchronous flow.
I use

Code:
<int:channel id="myErrorChannel" />
<int:header-enricher input-channel="testQueueInChannel" output-channel="testQueueInChannel2">
        <int:error-channel value="myErrorChannel" />
    </int:header-enricher>
to enrich the header with the errorChannel attribute.

I have a serviceActivator called exceptiomSimulator which will throw an Exception. My expectation is that the exceptionService is called when this Exception occurs.

Code:
<int:service-activator id="exceptionSimulator" input-channel="testQueueInChannel2" ref="daoTest" method="addSystemRecord"/>

    <jms:message-driven-channel-adapter id="testQueueAdapter" container="testQueueListener"
                                        channel="testQueueInChannel" />


    <int:service-activator id="exceptionService" input-channel="myErrorChannel"
                           ref="exceptionHandler" method="handleException"/>
However, this is not the case, the errorChannel header seems to be ignored. When debugging, I see that the errorChannel header attribute is there and correct.
Can somebody please explain me why ?

thnx
IvanJoe