首页 > 解决方案 > spring-amqp 无法在 SimpleMessageListenerContainerFactory 中使用自定义 MessagingMessageListenerAdapter

问题描述

在 spring-amqp 2.0.3.RELEASE 模块中,不可能在 SimpleMessageListenerContainerFactory 中使用自定义 MessagingMessageListenerAdapter。

即使考虑注册自己的 bean,我们也停留在最高的一个,其中最后一个对象实例刚刚在 org.springframework.amqp.rabbit.annotation.RabbitListenerAnnotationBeanPostProcessor#processAmqpListener 中创建了“新 MethodRabbitListenerEndpoint”。

也许 Spring 开发人员可以向 SimpleMessageListenerContainerFactory 添加一些生产者注册,例如“smlcf.setMessageListenerAdapterCreator”

标签: spring-amqp

解决方案


我创建了一个故事,用于为 ReplyTo https://jira.spring.io/browse/AMQP-825添加重试功能


推荐阅读