Skip to content

JmsOutboundGateway as ServiceActivator - for async gateway AdviceChains doesn't work #8684

Answered by artembilan
LukaszPa asked this question in Q&A
Discussion options

You must be logged in to vote

No, it is not. That advice is applied around handleRequestMessage() which in case of async mode returns a CompletableFuture 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 a FluxMessageChannel as an output and then reactive() for downstream handler:

	/**
	 * Make the consumer endpoint as reactive independ…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@LukaszPa
Comment options

@artembilan
Comment options

@LukaszPa
Comment options

Answer selected by LukaszPa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants