I am trying to understand how the wiring works.
my code is as under.
How will Spring know that it has to now put the message to errorChannel? If the exception is thrown in the bean defined in inputchannel, is it then that the error message is sent to error channel?
<int:channel downloadErrorChannel />
input-channel="downloadErrorChannel" output-channel="errorTCPChannel" />
In my scenario, when a certain action fails, I need to capture the error message, add certain additional text and send an xml over TCP. I have an XML format defined. I also need to send another XML to let the receiver know that the system is alive every few seconds. How can I achieve this?