We have a dynamic IntegratonFlow registration using IntegrationFlowContext. For an conditional use-case we need to set the replyChannel with reference to Spring Integration Context's nullChannel object. How do I get the MessageChannel reference of framework created nullChannel object?
Will MessageChannels.direct(IntegrationContextUtils.NULL_CHANNEL_BEAN_NAME).getObject() provide me the framework created nullChannel ?
Thanks
No, it does not. The default
nullChannelis an instance ofNullChannel. I'm not sure why you need to deal withMessageChannelsfactory, but there is just enough to have thatnullChannelto be auto-wired into the service you are going to use it. Or just rely on anullChannelstring as is and the framework will be able to resolve it properly.Otherwise, please, share more info about your configuration, and we will look what more specific solution would fit into your requirements.