spring integration: "no output-channel or replyChannel header available"

spring-integration

Solution

Thanks This post helped me a lot. Bellow is the code that i used to create the Message header from previous channel message, to newly created message with payload myPayload

createSlotGateway.send(MessageBuilder.withPayload(myPayload).copyHeaders(messagePrev.getHeaders()).build());

Problem

I'm using the following SI flow: ``` <integration:gateway id="notificationGateway" default-request-channel="start" default-reply-channel="end" service-interface="com.supplier.NotificationGateway"/> <integration:channel id="start"/> <integration:service-activator id="securedFileTransfer" input-channel="start" ref="Submitter" method="submit" output-channel="end"/> <integration:publish-subscribe-channel id="end"/> ``` Getting the following error: ``` no output-channel or replyChannel header available?borg.springframework.integration.support.channel.ChannelResolutionException: no output-channel or replyChannel header available ``` Any ideas?

Original source