Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug spring-integration

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?

like image 651
Tilman Rossmy Avatar asked Jan 15 '14 15:01

Tilman Rossmy


1 Answers

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.

like image 192
Artem Bilan Avatar answered Oct 14 '22 11:10

Artem Bilan