Skip to content

Can StreamRabbitListenerContainerFactory message listeners retry messages? #1454

Discussion options

You must be logged in to vote

The retry template in the listener container factory is for retrying publishing replies (for a request/reply listener).

	/**
	 * Set a {@link RetryTemplate} to use when sending replies; added to each message
	 * listener adapter.
	 * @param retryTemplate the template.
	 * @see #setReplyRecoveryCallback(RecoveryCallback)
	 * @see AbstractAdaptableMessageListener#setRetryTemplate(RetryTemplate)
	 */
	public void setRetryTemplate(RetryTemplate retryTemplate) {
		this.retryTemplate = retryTemplate;
	}

We don't currently support request/reply for stream listeners.

Retries for deliveries in the classic listener containers is implemented using the advice chain (with a retry interceptor https://d…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@garyrussell
Comment options

@daniel-bray-sonalake
Comment options

Answer selected by daniel-bray-sonalake
Comment options

You must be logged in to vote
1 reply
@daniel-bray-sonalake
Comment options

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