Error handling in Spring integration flow async

自闭症网瘾萝莉.ら 提交于 2019-12-01 20:24:18

A gateway with a void return expects no reply so there is no reply/error channel added to the message headers. When run on the calling thread, the exception is thrown to the caller; with an async flow, the exception will go to the default errorChannel (which has a log adapter attached).

For this scenario, you need to add a header enricher to set the errorChannel header to your error channel.

We should look into doing that automatically, but it does not happen currently.

I opened a JIRA Issue for this.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!