Hello!
Not sure what you want to get...
Message is immutable Object, so each endpoint creates new Message before sending to the output-channel. Of course this Message contain payload as a result of work of that endpoint and it may copy headers from inbound Message.
So, what do you want to send to the C?
Explain, please your use-case.
It sounds like you want to break message-flow and start a new one.
By the way you can write some simple code:
Code:
<transformer id="transformer"
input-channel="input"
output-channel="output"
ref="someBean"
method="someMethod"/>
public Message<?> someMethod(Message<?> message) {
return MessageBuilder.withPayload("").build();
}
By the way: NULL payload isn't allowed by Spring Integration.
Take care,
Artem