使用x-filter-jms-selector参数配置amq.topic绑定。

问题描述 投票:0回答:1

如何配置amq.topic绑定x-filter-jms-selector参数?

我知道如何在web管理界面中进行配置,但如果我们修改qpid的配置文件,如何在其中添加这个过滤器?

enter image description here

如果我们要修改qpid的配置文件,那么如何在其中添加这个过滤器?

qpid
1个回答
0
投票

配置的json会有这样的内容

{
"id" : "1c91c97b-df6d-44e8-bf5d-673e7f0133b5",
"name" : "amq.topic",
"type" : "topic",
"durableBindings" : [ {
  "arguments" : { },
  "bindingKey" : "*.*.event",
  "destination" : "test"
}, {
  "arguments" : {
    "x-filter-jms-selector" : "event NOT IN ('location', 'weather')"
  },
  "bindingKey" : "*.*.tick",
  "destination" : "test"
} ],
"lastUpdatedBy" : "guest",
"lastUpdatedTime" : 1590073211015,
"createdBy" : null,
"createdTime" : 1589575285215
}
© www.soinside.com 2019 - 2024. All rights reserved.