You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In what version(s) of Spring Integration are you seeing this issue?
5.4.3
Describe the bug
There is no consistency between DSL and XML config for the order of subscribers on the global errorChannel. The order attribute also does not cause any effect in the XML configuration.
To Reproduce
Add a exception throwing service-activator to the global errorChannel
Simulate a message dispatch to the global errorChannel
When the above is implemented using DSL, the behavior is as expected below. However, when implemented in XML, the exception throwing service-activator in invoked before the error logging handler, hence causing the error logging handler to be never invoked as both subscribers are invoked on the caller's thread. Setting order="100" on the service-activator XML declaration also has no effect.
Expected behavior
The default error logging handler attached to the global errorChannel should be invoked first and must log the error
The exception throwing service-activator must be invoked after, not before the error logging handler
Sample
A brief description and scenario under which this issue was encountered is available at this stackoverflow post.