Error:
Solution:
context.xml
14:28:10,674 ERROR [ContextLoader] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.integration.config .ConsumerEndpointFactoryBean#1': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No poller has been defined for endpoint 'org.springframework.integration .config.ConsumerEndpointFactoryBean#1', and no default poller is available within the context. at org.springframework.beans.factory.support .AbstractAutowireCapableBeanFactory .initializeBean(AbstractAutowireCapableBeanFactory.java:1455) at org.springframework.beans.factory.support .AbstractAutowireCapableBeanFactory .doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
Solution:
context.xml
<jdbc:outbound-channel-adapter channel="channel-persistence" data-source="dataSource" query="${int.query}"> <si:poller fixed-rate="1000"/> </jdbc:outbound-channel-adapter>