We are quite happy with spring-integration except when things do not work as expected. Then it is really difficult to find out what is going on (we are using xml configuration). Can someone point me to the java components behind the spring integration components in order to debug them. For instance: If I have a headerValueRouter, where can I set a breakpoint to find out what is the actual value of the header inside the message, just before the component is doing the routing. Maybe there is even a list int:component->java class?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
True. The list exists, but it isn't so direct, as you may expect. Each xml component goes to some parser. And the last one configure the Spring Integration component(s).
You can find the mapping from source code of any AbstractIntegrationNamespaceHandler
implementation.
Actually, we try to reflect xml-tag names with Java class names. So <header-value-router>
-> HeaderValueRouterParser
-> HeaderValueRouter
.