Wildfly 9:找不到 hornetq-configuration.xml

Wildfly 9: Can't find hornetq-configuration.xml

关于 Hornetq 的文档说 (Reference):

The configuration directory is specified on the classpath in the run scripts run.sh and run.bat This directory can contain the following files.

但我在 run.sh 中只能找到:

#!/bin/sh
# Placeholder for people used to run.sh from older version redirecting them to read the readme
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo 
echo     ========================================================================================
echo 
echo To start JBoss Application Server please see $DIR/../README.txt
echo 
echo     ========================================================================================
echo



我还阅读了有关 (Reference)

的内容

HornetQ looks for its configuration files on the Java classpath.

但我也在那里找不到它。



我在网上浏览了很长时间,但找不到有关此配置文件位置的更多具体信息。也没有关于是否可能没有给出路径的信息,我必须自己把它放在那里(以及如何)。

有人知道这个文件可能在哪里或者我如何定义它的路径并自己编写吗?正如主题标题所说,我正在使用 Wildfly 9。

如果您使用的是 WildFly,您将通过 WildFly 对其进行配置。我猜 run.sh 是指独立的 hornetq 服务器。要在启用消息的情况下启动 WildFly,您需要使用:

$JBOSS_HOME/bin/standalone.sh -c standalone-full.xml