We are working with Spring-Integration for implementing APIs which themselves call several different APIs.
In case of an exception, we have an processor on the errorChannel that introspects the information contained within ErrorMessage which gives a great deal of detail.
I was looking for way of augmenting the ErrorMessage with information about the current processor that was executing at the time of the exception so as to provide more pertinent response information in the error processor.
I was thinking, for instance, that one could put a WireTap global interceptor which adds a "channelName" header to the current message and that "channelName" header would be available within the ErrorMessage.
But I'm wondering if there isn't something more direct than "channelName". Perhaps there is some context information available already within ErrorMessage that indicates the current processor at the time of the exception.
All pointers appreciated