【发布时间】:2018-03-24 11:20:57
【问题描述】:
我在integrationcontext.xml
中有如下交流<!-- rabbit exchanges, queues, and bindings used by this app -->
<rabbit:topic-exchange name="newPaymentEventsExchange" auto-delete="false" durable="true">
<rabbit:bindings>
</rabbit:bindings>
</rabbit:topic-exchange>
我需要能够动态根据来自数据库的以下对象的 channelName 值将队列添加到交换中,而且我应该能够在何时更新有人添加了新频道:
public class Channel {
private Long channelId;
private String tenantId;
private String channelName;
------
//Getters & setters
}
【问题讨论】:
标签: java spring spring-boot spring-integration spring-integration-amqp