0
메시지 채널을 보내는 동안 메시지 채널에서 예외가 발생합니다. 누구든지 도와주세요. 에 의한Spring 통합 헤더 값 라우터 라우터
예외 :
org.springframework.messaging.MessagingException: failed to resolve channel name 'ZCRMXIF_PRODUCT_MATERIAL'; nested exception is org.springframework.messaging.core.DestinationResolutionException:
failed to look up MessageChannel with name 'ZCRMXIF_PRODUCT_MATERIAL' in the BeanFactory.;
nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'ZCRMXIF_PRODUCT_MATERIAL' is defined.
코드 : 사전에
Map headers = Collections.singletonMap("IDOCTYP","ZCRMXIF_PRODUCT_MATERIAL");
idocXmlInboundChannel.send(new GenericMessage("message", headers));
봄 구성
<int:channel id="idocXmlInboundChannel">
<int:interceptors>
<int:wire-tap channel="logger" />
</int:interceptors>
</int:channel>
<int:logging-channel-adapter log-full-message="true" id="logger" level="DEBUG" />
<bean id="idocInboundService" class="com.hybris.datahub.sapidocintegration.spring.HttpInboundService">
<property name="idocXmlInboundChannel" ref="idocXmlInboundChannel" />
</bean>
<!-- Data Hub input channel for raw data -->
<int:channel id="rawFragmentDataInputChannel" />
<!-- Maps received IDOCs by value of header attribute: "IDOCTYP" to corresponding mapping service -->
<int:header-value-router input-channel="idocXmlInboundChannel" header-name="IDOCTYP">
<int:mapping value="ZCRMXIF_PRODUCT_MATERIAL" channel="ZCRMMATMAS" />
</int:header-value-router>
<!-- sap crm product -->
<int:service-activator input-channel="ZCRMMATMAS" output-channel="rawFragmentDataInputChannel" ref="customproductCRMMappingService" method="map" />
<!-- Dummy implementations of mapping services implemented elsewhere -->
<bean id="customproductCRMMappingService" class="com.hybris.datahub.sapidocintegration.IDOCMappingService">
<property name="rawFragmentDataExtensionSource" value="customproduct" />
<property name="rawFragmentDataType" value="RawCustomProduct" />
</bean>
감사합니다.