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?
<integration:exception-type-router input-channel="errorChannel" default-output-channel="globalExceptionChannel">
Any help appreciated!