Here is my case:
At some point in my main flow I Wire-Tap my message for asynchronous monitoring/logging.
When I inspect the header at the messageHandler-->extractRequest point in time , the reply-channel is still the same as the error-channel. This is because of the direct nature of this flow the error-channel is bounded to the caller's thread, or something like this...Code:... <int:wire-tap channel="dispatchRequestChannel" pattern="externalRequestChannel" /> ... <int:channel id="dispatchRequestChannel"> <int:dispatcher task-executor="asynchronousExecutor"/> </int:channel> ... <int:chain input-channel="dispatchRequestChannel"> <int:header-enricher> <int:error-channel value="logErrorChannel"/> </int:header-enricher> <int:filter expression="headers.get('serviceId') == 'TimerDispositionForLot'"/> <int:service-activator ref="messageHandler" method="extractRequest" /> <int:service-activator ref="monitoringService" method="monitorRequest"/> </int:chain> ... <int:channel id="logErrorChannel"/> <int:logging-channel-adapter channel="logErrorChannel" level="DEBUG" auto-startup="true" log-full-message="true" />
I would have thought the "header-enricher" would have permit me to define a error-channel anyhow?
By the way, i'm using s-i version 2.1.2.


Reply With Quote
