英文:
where to place test-jgroups-jdbc_ping.xml jgroup file in JGroups configuration
问题
在《Artemis ActiveMQ 集群文档》中指定了:
jgroups-file 属性。这是 JGroups 配置文件的名称。它将用于初始化 JGroups 通道。确保文件位于 Java 资源路径中,以便 Apache ActiveMQ Artemis 可以加载它。
我已经配置了名为 test-jgroups-file_ping.xml 的 JGroups 配置文件,但我不知道将该文件放在哪里。Java 资源路径是指什么?在 Linux 机器上,Java 资源路径位于什么位置。
英文:
In Artemis ActiveMQ Cluster documentation, it is specified that
> 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.
I have configured the test-jgroups-file_ping.xml JGroups configuration file, but I don't know where to place that file. What does java resource path reffers to. What is the java resource path location in Linux machine
答案1
得分: 1
ActiveMQ Artemis在启动时会将$ARTEMIS_HOME/etc
和$ARTEMIS_INSTANCE/etc
添加到类和资源的搜索路径中,首先在父类加载器中进行搜索。
如果你正在使用ActiveMQ Artemis 启动,即$ARTEMIS_INSTANCE/bin/artemis run
,你可以将使用jgroups-channel
标签定义的文件移动到$ARTEMIS_INSTANCE/etc
路径下。
你可以查看ActiveMQ Artemis使用JGroups进行集群示例以获取更多详细信息。
英文:
ActiveMQ Artemis adds at boot the $ARTEMIS_HOME/etc
and $ARTEMIS_INSTANCE/etc
to be searched for classes and resources after first searching in the parent class loader.
You can move the file defined with the tag jgroups-channel
to the $ARTEMIS_INSTANCE/etc
path if you are using the ActiveMQ Artemis boot, ie $ARTEMIS_INSTANCE/bin/artemis run
.
You can take a look to the ActiveMQ Artemis Clustering with JGroups Example for further details.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论