【发布时间】:2016-05-30 12:03:17
【问题描述】:
我使用 spring 集成从数据库中读取数据。 现在我使用轮询适配器
@Bean
public MessageSource<Object> jdbcMessageSource() {
JdbcPollingChannelAdapter a = new JdbcPollingChannelAdapter(dataSource(), "SELECT id, clientName FROM client");
return a;
}
流程:
@Bean
public IntegrationFlow pollingFlow() throws Exception {
return IntegrationFlows.from(jdbcMessageSource(),
c -> c.poller(Pollers.fixedRate(30000).maxMessagesPerPoll(1)))
.channel(channel1())
.handle(handler())
.get();
}
但我想从其他系统安排我的流程。 有人知道怎么做吗?
【问题讨论】:
标签: java spring-integration spring-jdbc spring-dsl