Application local error handling: Service Activator using channel label
For application local error handling, service activators have to be configured with channel destination names. That is severely breaking configuration decoupling. We would expect that any coded plumbing relies upon channel labels exclusively. I understand that service activators are Spring Integration matters, and I don't know if that can be easily fixed. I tried to use a stream listener instead, unsuccessfully.
see https://docs.spring.io/spring-cloud-stream/docs/current/reference/htmlsingle/#_application_error_handling NB: the provided example is wrong btw, see #1843
As you pointed out SA is an SI artifact, so I am not sure what your expectation are with regard to stream. I also do not understand what do you mean by severely breaking configuration decoupling. . . Could you provide an example?
Also, for the future please use Stack Overflow channel when asking question or starting discussions.
Hi Oleg, my concerns are about the fact that if the configuration changes in that matter (destination or group) some would have to change the code accordingly. This coupling is forcing recompilation instead of light config management which would be valuable.
Thomas, I can't agree with you more and this fact alone is the primary reason why we are moving completely away from annotation-based configuration. Check out these blogs:
- https://spring.io/blog/2019/10/14/spring-cloud-stream-demystified-and-simplified
- https://spring.io/blog/2019/10/17/spring-cloud-stream-functional-and-reactive
Basically we are week(s) away from Horsham.RELEASE (3.0.0.RELEASE), so consider switching to functions and I'll be publishing another blog on error handling with functions next week
Thank you, Oleg, for following up. Can't wait ;-)