Skip to content

Commit 4c88ddd

Browse files
artembilangaryrussell
authored andcommitted
GH-2731: Fix nested gateway error propagation
Fixes #2731 When we have a nested gateway configuration, we are losing the context of the current request message in case of errors and the downstream `MessagingException` is just re-thrown as is, without the proper `failedMessage` and its processed `errorChannel` header. * Check for exception type and for the `errorChannel` header in the current `requestMessage` before re-throwing as a new `MessageHandlingException` in the `MessagingGatewaySupport.sendAndReceive()` * Extract `.gateway()` tests into the separate `GatewayDslTests` class
1 parent 37563a1 commit 4c88ddd

File tree

3 files changed

+296
-209
lines changed

3 files changed

+296
-209
lines changed

0 commit comments

Comments
 (0)