开发者

Can I enable Spring Integration message history inside a chain?

开发者 https://www.devze.com 2023-03-14 17:51 出处:网络
If开发者_如何转开发 I add this to my context: <integration:message-history/> I get a message header populated with the names (ids) of all the named components through which the message has pa

If开发者_如何转开发 I add this to my context:

<integration:message-history/>

I get a message header populated with the names (ids) of all the named components through which the message has passed.

But if I have a chain:

<integration:chain id="inboundChain" input-channel="inboundChannel">
    <integration:transformer ref="myTransformer"/>
    <integration:filter ref="myFilter"/>
    <integration:router ref="myRouter"/>
</integration:chain>

I only get "inboundChain" in the list of components, as I can not add an id to the components nested in the chain.

Any way to get myTransformer etc into the message history?


Answer is no.

See spring forum post here

0

精彩评论

暂无评论...
验证码 换一张
取 消