How to debug spring-integration

2020-07-10 09:56发布

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条回答
在下西门庆
2楼-- · 2020-07-10 10:14

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.

查看更多
登录 后发表回答