弹簧集成中的DataHub问题
问题描述:
当我尝试发布IDOC时,出现以下错误。弹簧集成中的DataHub问题
调度员没有订户通道 'DataHubWebApplicationContext.DEBMAS-DEBI'。嵌套异常是 org.springframework.integration.MessageDispatchingException: 分派器没有订户。
XML映射是这样的:
<int-xml:xpath-router id="splitKTOKD" input-channel="DEBMAS" evaluate-as-string="true" resolution-required="false"default-output-channel="DEBMAS-NOTSUPPORTED-KTOKD">
<int-xml:xpath-expression id="splitKTOKDExpression" expression="//KTOKD" />
<int-xml:mapping value="DEBI" channel="DEBMAS-DEBI" />
<int-xml:mapping value="0170" channel="DEBMAS-0170" />
<int-xml:mapping value="Z001" channel="DEBMAS-Z001" />
</int-xml:xpath-router>
<int:service-activator id="sapcustomerDEBMASCustomerServiceActivator" input-channel="DEBMAS-DEBI" output-channel="rawFragmentDataInputChannel" ref="sapcustomerDEBMASCustomerMappingService" method="map" />
<int:service-activator id="sapcustomerDEBMASCustomerServiceActivator" input-channel="DEBMAS-Z001" output-channel="rawFragmentDataInputChannel" ref="sapcustomerDEBMASCustomerMappingService" method="map" />
虽然我已经配置适当的输入信道和输出信道我正在仅用于信道DEBMAS-DEBI消息传送异常。 DEBMAS-Z001,DEBMAS-0170工作正常。
看起来像这是与春季框架问题有关的东西。
我该如何解决这个春季问题?
答
你有两个豆宣布与sapcustomerDEBMASCustomerServiceActivator
Id相同。默认情况下,第二个胜利。应用程序上下文中没有第一个bean。这就是为什么你正在观察这个问题。
使用不同的ID,甚至没有它来解决问题。
没有Service Activator Id它对我来说工作正常。谢谢 – Shweta