Skip to content

Allow StreamRabbitListenerContainerFactory message listeners to retry messages in a standard manner #1455

Closed
@daniel-bray-sonalake

Description

@daniel-bray-sonalake

Expected Behavior

I spotted this when looking into this: Can StreamRabbitListenerContainerFactory message listeners retry messages?

Retries for deliveries in the classic listener containers is implemented using the advice chain (with a retry interceptor https://docs.spring.io/spring-amqp/docs/current/reference/html/#retry).

So there's no standard way to handle retries as part of the stream container factory, that do exist on the SimpleMessageListenerContainer

Current Behavior

There is currently no advice chain support in the StreamListenerContainer.

Context

There are workarounds - suggested in the Can StreamRabbitListenerContainerFactory message listeners retry messages? - but it pushes the retry logic out into all the @RabbitListeners, instead of keeping it central.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions