Spring integration: "no output channel or response" Channel header access "

I am using the following SI stream:

<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?

+3


source to share


1 answer


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



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

      

+4


source







All Articles