简体   繁体   English

使用Spring集成时更新Rabbitmq交换类型

[英]Update Rabbitmq exchange type when using spring integration

I currently have a defined rabbitmq exchange in my spring xml that is a fanout. 我目前在spring xml中有一个定义的Rabbitmq交换,它是一个扇出。 I want to change it to a direct but when i deploy my new project the exchange is not updated. 我想将其更改为直接方式,但是当我部署新项目时,交换不会更新。 I see spring tries to create but fails. 我看到spring尝试创建但失败了。

Is there an override I am missing? 我是否缺少覆盖?

It cannot be done; 无法做到; you can't change an exchange type after it is created. 创建交换类型后,您将无法更改它。

You have to delete it and recreate. 您必须删除它并重新创建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将Spring Cloud Stream与Rabbitmq结合使用,交换类型为“ headers” - Using Spring Cloud Stream with Rabbitmq, with exchange type “headers” 配置Spring Integration聚合器以合并RabbitMq扇出交换的响应 - Configuring a Spring Integration aggregator to combine responses from a RabbitMq fanout exchange RabbitMQ + Spring集成:从队列绑定到主题交换的消息转换 - RabbitMQ + Spring Integration: Message conversion from queue bound to a topic exchange 指定主题时使用直接交换的 RabbitMQ - RabbitMQ using Direct Exchange when Topic was specified Spring AMQP RabbitMQ代码中的发送方是否没有交换类型? - Is exchange type not available at sender side in Spring AMQP RabbitMQ codes? 无法使用Spring-Cloud-Stream创建RabbitMQ Exchange - RabbitMQ Exchange not getting created using Spring-Cloud-Stream 如何使用Spring Boot通过扇出交换在RabbitMQ上发布消息 - How to publish messages on RabbitMQ with fanout exchange using Spring Boot 无法使用 header 与 Spring Boot 交换将消息发布到 RabbitMQ - Not able to publish a message onto RabbitMQ using header exchange with Spring Boot 如何使用Spring Integration Java DSL将消息发送到Rabbitmq队列 - How to send message to the rabbitmq queue using spring integration java DSL 通过Spring发送和接收RabbitMQ扇出交换 - Send and receive on RabbitMQ fanout exchange via Spring
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM