在JGroups配置中放置test-jgroups-jdbc_ping.xml JGroup文件的位置。

huangapple go评论78阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2020年9月24日 12:34:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/64039614.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定