简体   繁体   中英

How to pass the destination value from many message driven channel adapter to common inbound channel in spring integration

Having the following requirement, where we have many message driven channel adapter to consume messages from a different WMQ's and send it to common outbound channel.

I need the detail of message adapter that consumes the message to handle the business scenarios.

Any help is appreciated.

First of all no one in the Spring Integration sends directly to the inbound channel . Let's hope you mean a common outbound channel adapter .

There is not too much out-of-the-box information about a message driven channel adapter in the messages it emits. Maximum what you can do is to enable Message History - and the message will have an id of components it travels through.

If you need more info, I suggest to place a Header Enricher just after each message driven channel adapter and populate a required information from there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM