If there has a more convenient way to configure ConfirmCallback and ReturnsCallback for RabbitTemplate by auto-configure , like declare a bean of ConfirmCallback or ReturnsCallback, so we need not to declare a new bean of RabbitTemplate in extra ConfigClass.
Comment From: dangzhicairang
I got an error when visiting ci.spring.io/builds/240492.
Error code: 1020
Ray ID: 7931a65cbcdc96a1
Country: CN
Data center: sjc06
IP: 171.221.64.103
Timestamp: 2023-02-02 08:45:18 UTC
Comment From: wilkinsona
Our CI environment is being upgraded at the moment so it's likely to be unstable for a while.
Comment From: philwebb
I wonder if we should instead offer a RabbitTemplateCustomizer callback which could be used to attach a ConfirmCallback, ReturnsCallback or perform any other customization.
Comment From: wilkinsona
We already have the RabbitTemplateConfigurer that may confuse things a bit. That said, I'm increasingly favour of the …Customizer based approach over defining numerous beans that are only beans so that they can be set on another bean.
Comment From: dangzhicairang
We already have the
RabbitTemplateConfigurerthat may confuse things a bit. That said, I'm increasingly favour of the…Customizerbased approach over defining numerous beans that are only beans so that they can be set on another bean.
It's right, i will supply a RabbitTemplateCustomizer like @philwebb said.
Comment From: mhalbritter
Thank you!