JmsOutboundGateway as ServiceActivator - for async gateway AdviceChains doesn't work #8684
-
If i use JmsOutboundGateway with setAsync(true) then RetryAdvice inputted in gateway AdviceChain doesn't work.
Best Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
No, it is not. That advice is applied around We may borrow some ideas from AWS SDK v2 But for now, no, there is no way to retry We may consider, though, to use an
There you can set a |
Beta Was this translation helpful? Give feedback.
No, it is not. That advice is applied around
handleRequestMessage()
which in case ofasync
mode returns aCompletableFuture
immediately and all the "hard" JMS logic happens on a different thread.We cannot retry an async mode until we come up with an async retry feature, which possible could be as a composition on that returned
CompletableFuture
: spring-projects/spring-retry#81.We may borrow some ideas from AWS SDK v2
AsyncRetryableStage
...But for now, no, there is no way to retry
async
mode.We may consider, though, to use an
async
mode combination with aFluxMessageChannel
as an output and thenreactive()
for downstream handler: