Welcome to the new Spring.io forums!
If this is your first visit, be sure to check out the
by clicking the link above, and for security reasons, use the
forgot password link to reset your password..
You may have to register before you can post: click the register
link above to proceed. To start viewing messages, select the forum that you want to visit
from the selection below.
No announcement yet.
when are messages put on errorChannelPage Title Module
The question could not be simple answered because it depends on the components you are using.
But very simple:
A message will be normally only put to the default error channel (or a custom error channel) if the message is processed in an asynchronous context in any way (ExecutorChannel, PollableChannel, asynchronous publisher/consumer, ...). Else for synchronous message send you will get the occurred exception direct (you only use DirectChannels, no caching for example in combination with the aggregator and friends, etc.) and nothing will be ever go to the error channel.
If you must go safe:
1. Check if the component acts in a synchronous or asynchronous context (javadoc, reference, source code).
2. For an asynchronous component check the error handling possibilities (javadoc or source code).
As a first indicator, you can check, if the used spring components have got a errorHandler or errorChannel property, with which the error handling could be customized.