有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java在何处放置testjgroupsjdbc_ping。jgroup配置中的xml jgroup文件

在Artemis ActiveMQ集群文档中,指定

jgroups-file attribute. This is the name of JGroups configuration file. It will be used to initialize JGroups channels. Make sure the file is in the java resource path so that Apache ActiveMQ Artemis can load it.

我已经配置了test-jgroups-file_-ping。xml JGroup配置文件,但我不知道该文件放在哪里。java资源路径指的是什么。Linux机器中的java资源路径位置是什么


共 (1) 个答案

  1. # 1 楼答案

    ActiveMQ Artemis在boot添加了$ARTEMIS_HOME/etc$ARTEMIS_INSTANCE/etc以在父类加载器中首次搜索后搜索类和资源

    如果您使用的是ActiveMQ Artemis boot,即$ARTEMIS_INSTANCE/bin/artemis run,则可以将使用标记jgroups-channel定义的文件移动到$ARTEMIS_INSTANCE/etc路径

    您可以查看ActiveMQ Artemis Clustering with JGroups Example以了解更多详细信息