Hello,
I'm trying to let SI send the message to an errorChannel when an Exception occurs in my synchronous flow.
I use
to enrich the header with the errorChannel attribute.Code:<int:channel id="myErrorChannel" /> <int:header-enricher input-channel="testQueueInChannel" output-channel="testQueueInChannel2"> <int:error-channel value="myErrorChannel" /> </int:header-enricher>
I have a serviceActivator called exceptiomSimulator which will throw an Exception. My expectation is that the exceptionService is called when this Exception occurs.
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.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"/>
Can somebody please explain me why ?
thnx
IvanJoe


Reply With Quote