Add spring-integration inbound-channel-adapter after the application has started -


i have spring-integration channel hooked service-activator using xml configuration. i've attached sftp inbound-channel-adapter same channel. working quite well.

i allow clients add/remove sftp inbound-channel-adapters channel through web interface, instantiating spring-integration components appears tightly coupled xml spring context (see org.springframework.integration.sftp.config.sftpinboundchanneladapterparser).

is there way add/remove sftp inbound-channel-adapters after application has started?

this not trivial task. spring integration components spring beans, @ least. so, if want spring @ runtime should application context, provides dependency injection features. suggest take sample: https://github.com/spring-projects/spring-integration-samples/tree/master/advanced/dynamic-ftp demonstrates dynamic registration technique.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -