Hi,

I am trying to understand how the wiring works.

my code is as under.
Code:
<int:gateway id="downloadServiceGateway"
service-interface="com.directv.strammonitor.downloader.DownloadServiceGateway"
    	default-request-channel="downloadInputChannel"
    	default-reply-channel="downloadOutputChannel" 
	error-channel="downloadErrorChannel"/> 

	<int:channel downloadErrorChannel />

	<int:transformer ref="downloadErrorToTransformExceptionToXML"
input-channel="downloadErrorChannel" output-channel="errorTCPChannel" />
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?

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?