Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Create a Spring Integration Channel programatically and register that as a Spring bean
private SubscribableChannel createInputChannel(String inputChannelName) {
PublishSubscribeChannel channel = new PublishSubscribeChannel();
((ConfigurableApplicationContext)applicationContext).getBeanFactory().registerSingleton(inputChannelName, channel);
return channel;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment