I just tested it with 2.0.2.BUILD-SNAPSHOT. I can set the attribute "error-channel" on the gateway now, but it has no effect.
Code:
[DEBUG] [2011/28/01 11:26:01,163] [task-scheduler-1] [MessageLogger.log] [Payload=startChannel payload][Headers={errorChannel=errCh1, replyC
hannel=nullChannel, timestamp=1296231961146, history=startChannel, id=2d40383a-72b2-42e9-862d-ee431d049363}] at (MessageLogger.java:25)
[DEBUG] [2011/28/01 11:26:01,182] [task-scheduler-1] [MessageLogger.log] [Payload=25][Headers={errorChannel=org.springframework.integration.
core.MessagingTemplate$TemporaryReplyChannel@b6a350, replyChannel=org.springframework.integration.core.MessagingTemplate$TemporaryReplyChann
el@b6a350, timestamp=1296231961181, history=startChannel,channel2, id=646f7632-f0cd-4e4a-b721-39339db4ddfc}] at (MessageLogger.java:25)
[DEBUG] [2011/28/01 11:26:01,187] [task-scheduler-1] [MessageLogger.log] [Payload=after][Headers={errorChannel=errCh1, replyChannel=nullChan
nel, timestamp=1296231961187, history=startChannel,channel2, id=5f92a4ee-f5db-435b-b881-e4292cd51bdf}] at (MessageLogger.java:25)
If I don't set the attribute, the error channel is still reset.
Code:
[DEBUG] [2011/28/01 11:27:31,743] [task-scheduler-1] [MessageLogger.log] [Payload=startChannel payload][Headers={errorChannel=errCh1, replyC
hannel=nullChannel, timestamp=1296232051727, history=startChannel, id=e132f268-37f4-44ee-82ab-9e4a2a5273d4}] at (MessageLogger.java:25)
[DEBUG] [2011/28/01 11:27:31,759] [task-scheduler-1] [MessageLogger.log] [Payload=25][Headers={errorChannel=org.springframework.integration.
core.MessagingTemplate$TemporaryReplyChannel@e2e687, replyChannel=org.springframework.integration.core.MessagingTemplate$TemporaryReplyChann
el@e2e687, timestamp=1296232051758, history=startChannel,channel2, id=8220c56c-eeed-45d8-be31-e1d1c434afa6}] at (MessageLogger.java:25)
[DEBUG] [2011/28/01 11:27:31,764] [task-scheduler-1] [MessageLogger.log] [Payload=after][Headers={errorChannel=errCh1, replyChannel=nullChan
nel, timestamp=1296232051762, history=startChannel,channel2, id=991acde2-7b7d-45b7-ae9c-27f979c9a7c3}] at (MessageLogger.java:25)