【发布时间】:2016-12-02 16:18:22
【问题描述】:
我阅读了这个SOF 问题,我有一个补充问题。
我今天有一个像这样工作的 Spring 集成流程:
@Bean
public IntegrationFlow udpSource1() {
return IntegrationFlows.from(new MulticastReceivingChannelAdapter("224.0.0.1", 2000)).
transform(new ObjectToStringTransformer("utf8")).channel("stringified").get();
}
@Bean
public IntegrationFlow udpSource2() {
return IntegrationFlows.from(new MulticastReceivingChannelAdapter("224.0.0.1", 2001)).
transform(new ObjectToStringTransformer("utf8")).channel("stringified").get();
}
我有几个 (10) 个 UDP 源。
我想用我的所有 UDP 源创建一个流,所有这些源都将数据推送到“字符串化”通道。
我想从一个 ArrayList 中获取我所有的 UDP 端口,然后遍历这个列表并创建 UDP 源...
有可能吗?
【问题讨论】: