我在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
}