console - Where does ActiveMQ Artemis Console store address and queue definitions?
问题描述
I created the broker folder inside /var/lib
on Ubuntu 18.04. Inside /var/lib/[broker]/etc
there is the broker.xml
file that you can use to define addresses and queues. However, I used the administration console to create an address with a couple queue, and this file does not update. In fact, no files inside the broker directory or Artemis home update.
So where is the administration console storing the definitions?
Also is it a better practice to create the addresses and queue in the broker.xml
file instead of through the console?
解决方案
Definitions for addresses and queues created at runtime are stored in binary form in the broker's journal, specifically in the "bindings" journal which is separate from where messages are stored. In your configuration the bindings journal would be in /var/lib/[broker]/data/bindings
by default.
As far as best practices go it really depends on the use-case. Some users like to have the address & queue definitions in broker.xml
. The broker.xml
can be updated at runtime and the broker will deploy newly configured addresses & queues. However, other users don't like to manually edit broker.xml
and would rather use the management API instead either through the web console or through another management interface (e.g. HTTP via Jolokia, JMX, management messages, etc.). Still others don't manage addresses or queues at all but simply allow the broker to auto-create the resources which their applications need.
推荐阅读
- html - 如何使用 selenium 处理具有 type="date" 的 html 日期选择器,在日期选择时 html dom 没有变化
- python - 数据预处理:缺失值 imputer 值错误
- reactjs - 反应路由 this.props.history.push 路径名不起作用
- flutter-dependencies - 因为 xml >=4.4.0 依赖于 petitparser ^3.1.0 而 xml >=3.7.0 <4.4.0 依赖于 petitparser ^3.0.0,所以 xml >=3.7.0 需要 petitparser ^3.0.0
- postgresql - 用psql运行CREATE TABLE后,找不到表
- javascript - 如何访问具有相同类的特定按钮的值
- gams-math - 如何使用 $set 在 GAMS 中的变量名中定义带有空格的字符串变量
- emacs - 在 emacs 八度模式下将八度可执行文件更改为 jupyter 内核
- oauth - 参数 user_id 不是 HTTP GET 的有效 Instagram 用户 ID
- excel - 单击excel中的超链接将文件从网络驱动器本地服务器下载到文件夹