首页 文章

Spring集成:事件驱动的入站通道适配器

提问于
浏览
0

我正在尝试将Quickfix(读取修复消息)中的读取消息配置为spring集成 . 我知道我可以使用入站通道适配器从外部源(如Quickfix)读取数据 . 您能提供一个如何编写事件驱动的入站通道适配器的示例吗?我有以下配置无法正常工作

<bean id="QuickFixClient" class="com.limebrokerage.quickfix.QuickFixClient" >
<constructor-arg index="0" value= "/home/sbansal/workspace/bo/target/config/sterling.qfix" />
</bean>

<int:inbound-channel-adapter ref="QuickFixClient" method="fromApp" channel="FixChannel">
</int:inbound-channel-adapter>

1 回答

  • 0

    消息驱动的通道适配器通常扩展 MessageProducerSupport ,使用 MessageBuilder 构建消息并调用 send(message) .

    或者您可以编写一个简单的POJO并使用返回 voidservice-interface 方法将 <gateway/> 注入其中 .

相关问题