【发布时间】:2015-10-06 07:51:18
【问题描述】:
我是 Spring 集成的新手。 在我的 spring 集成配置中,我有:
<int:chain input-channel="channel1_2" output-channel="channel1_3">
<int:service-activator>
<bean class="com.csv.CSVEntreprise"/>
</int:service-activator>
</int:chain>
<int:channel id="channel1_3"/>
<int:recipient-list-router id="id-entreprise" input-channel="channel1_3">
<int:recipient channel="channel1_3TRUE" />
<int:recipient channel="channel1_3FALSE"/>
</int:recipient-list-router>
<int:channel id="channel1_3TRUE"/>
<int:channel id="channel1_3FALSE"/>
在 CSVEntreprise 类中,我定义了布尔返回的方法,我希望当它返回 true 时使用通道 channel1_3TRUE,当它返回 false 时使用通道 channel1_3FALSE?
【问题讨论】:
标签: java spring spring-integration