Symptom
This KBA explains how the Spring Integration Message Channel Interceptor work for the Cloud Hot folder in Commerce Cloud environment.
Channel Adapter
In OOTB Commerce Cloud extensions, a "channel adapter" is configured for the hot folder inbound channel "cloudHotfolderInboundFileHeaderEnricherChannel".
The code resides in /azurecloudhotfolder/resources/azurecloudhotfolder-spring.xml :
<int:inbound-channel-adapter id="azureInboundChannelAdapter" |
Channel Interceptors
In all the recent Commerce Cloud extension versions (>1811) this channel interceptors were introduced to provide similar functionality of the poller transactions (transactional-synchronization-factory & Tx manager) which was the "old design" to handle the "error" and "archive" blob items. Channel interceptors are non invasive and performs better than the previous Tx Manager.The configuration can be found in /azurecloudhotfolder/resources/azurecloudhotfolder-spring.xml :
<!--A channel interceptor against the header used in the azure messaging flow for supporting archive and error functionality--> <bean id="azureHotFolderRoutingChannelInterceptor" class="de.hybris.platform.cloud.hotfolder.interceptor.HotFolderRouterChannelInterceptor"> |
/*
|
Backwards Compatible
Below configuration provides a backwards compatible synchronization factory, routing existing configuration using transaction manager supported archive and error functionality, to the null channel.
This avoids duplication of items in the archive and error folders which are now supported througha channel interceptor on the poller configured output channel - the cloud header enricher
/azurecloudhotfolder/resources/azurecloudhotfolder-spring.xml:
<int:transaction-synchronization-factory id="defaultAzureSynchronizationFactory"> |
/cloudhotfolder/integration/hot-folder-file-routing-spring.xml:
<!--Provide a header to support the new and preferred way of providing archive and error functionality using channel interceptors.--> |
Read more...
Environment
Product
Keywords
Cloud Hot folder, channel, channel interceptor , KBA , CEC-SCC-CLA-ENV-CST , Cloud Storage , How To
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.