|
|
@@ -41,9 +41,10 @@ public class AgmpMqBusConfig {
|
|
|
agmpAmqpAdmin.declareExchange(iotmToIotsCmdExchange());
|
|
|
agmpAmqpAdmin.declareBinding(iotmToIotsCmdBinding());
|
|
|
log.info("加载Base Data Mq");
|
|
|
- agmpAmqpAdmin.declareQueue(iotmToIotsCmdQueue());
|
|
|
- agmpAmqpAdmin.declareExchange(iotmToIotsCmdExchange());
|
|
|
- agmpAmqpAdmin.declareBinding(iotmToIotsCmdBinding());
|
|
|
+
|
|
|
+ agmpAmqpAdmin.declareQueue(iotmToIotsBaseDataQueue());
|
|
|
+ agmpAmqpAdmin.declareExchange(iotmToIotsBaseDataExchange());
|
|
|
+ agmpAmqpAdmin.declareBinding(iotmToIotsBaseDataBinding());
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -63,8 +64,8 @@ public class AgmpMqBusConfig {
|
|
|
* @return 交换机对象
|
|
|
*/
|
|
|
@Bean("iotmToIotsCmdExchange")
|
|
|
- public FanoutExchange iotmToIotsCmdExchange() {
|
|
|
- return new FanoutExchange(IotMqExchange.IOTM_TO_IOTS_EXCHANGE);
|
|
|
+ public DirectExchange iotmToIotsCmdExchange() {
|
|
|
+ return new DirectExchange(IotMqExchange.IOTM_TO_IOTS_EXCHANGE);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -74,7 +75,7 @@ public class AgmpMqBusConfig {
|
|
|
*/
|
|
|
@Bean("iotmToIotsCmdBinding")
|
|
|
public Binding iotmToIotsCmdBinding() {
|
|
|
- return BindingBuilder.bind(iotmToIotsCmdQueue()).to(iotmToIotsCmdExchange());
|
|
|
+ return BindingBuilder.bind(iotmToIotsCmdQueue()).to(iotmToIotsCmdExchange()).with(IotMqQueue.IOTM_TO_IOTS_CMD_QUEUE);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -84,7 +85,7 @@ public class AgmpMqBusConfig {
|
|
|
*/
|
|
|
@Bean("iotmToIotsBaseDataQueue")
|
|
|
public Queue iotmToIotsBaseDataQueue() {
|
|
|
- return QueueBuilder.durable(IotMqQueue.IOTM_TO_IOTS_CMD_QUEUE).build();
|
|
|
+ return QueueBuilder.durable(IotMqQueue.IOTM_TO_IOTS_BASE_DATA_QUEUE).build();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -93,8 +94,8 @@ public class AgmpMqBusConfig {
|
|
|
* @return 交换机对象
|
|
|
*/
|
|
|
@Bean("iotmToIotsBaseDataExchange")
|
|
|
- public FanoutExchange iotmToIotsBaseDataExchange() {
|
|
|
- return new FanoutExchange(IotMqExchange.IOTM_TO_IOTS_EXCHANGE);
|
|
|
+ public DirectExchange iotmToIotsBaseDataExchange() {
|
|
|
+ return new DirectExchange(IotMqExchange.IOTM_TO_IOTS_EXCHANGE);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -104,7 +105,7 @@ public class AgmpMqBusConfig {
|
|
|
*/
|
|
|
@Bean("iotmToIotsBaseDataBinding")
|
|
|
public Binding iotmToIotsBaseDataBinding() {
|
|
|
- return BindingBuilder.bind(iotmToIotsBaseDataQueue()).to(iotmToIotsBaseDataExchange());
|
|
|
+ return BindingBuilder.bind(iotmToIotsBaseDataQueue()).to(iotmToIotsBaseDataExchange()).with(IotMqQueue.IOTM_TO_IOTS_BASE_DATA_QUEUE);
|
|
|
}
|
|
|
|
|
|
|