Hello,
I have a @ServiceActivator which throws an exception, e.g. throw new FooException( "Invalid foo", e );
I have following configuration:
However, my message is always routed to the globalExceptionChannel and my FooException is wrapped within an AggregateMessageDeliveryException. Where does this happen? Why does this happen? And how can I route my exception to the fooExceptionChannel?Code:<integration:exception-type-router input-channel="errorChannel" default-output-channel="globalExceptionChannel"> <integration:mapping exception-type="org.acme.exception.FooException" channel="fooExceptionChannel"/> </integration:exception-type-router>
Any help appreciated!


Reply With Quote