hornetq静态集群配置
我正在尝试使用静态集群与两台机器(例如 x.my-domain.com 和 y.my-domain.com)建立一个 hornetq 集群,其中将运行两个 hornetq 服务器实例。我将使用 ~/hornetq-2.2.5.Final/examples/jms/clustered-static-discovery/server{0,1}/hornetq-configuration.xml 中给出的默认配置,每个服务器都有一个。我希望这能起作用,因为他们在 server0/server1 下的配置文件中已经有不同的连接器端口/连接器名称/连接器引用。
另外,在配置目录下,有几个默认的 dir/ 文件(jboss-as-4、jboss-as-5、ra.xml、独立的)。我应该删除所有这些并只放置上面提到的 hornetq-configuration.xml 吗?
i am trying to set-up a hornetq cluster using static clustering with two machines (say x.my-domain.com and y.my-domain.com) where there will be two instances of hornetq servers running. I am going to use the default configuration as given in ~/hornetq-2.2.5.Final/examples/jms/clustered-static-discovery/server{0,1}/hornetq-configuration.xml, one in each of the servers. I hope this would work as they already have different connector-port/ connector-name/ connector-ref in the configuration files under server0/ server1.
Also, under the configuration directory, there are several default dir/ files (jboss-as-4, jboss-as-5, ra.xml, stand-alone). Should i delete all of them and put only hornetq-configuration.xml as mentioned above ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
启动 hornetq 节点时,您应该传递要使用的配置目录。默认情况下,它设置为以下相对值(相对于 run.sh 或 run.bat 启动脚本)
../config/stand-alone/non-clustered
。您可以复制该示例并将其放置在您想要的任何位置,但是您需要运行 hornetq 并将配置目录位置作为第一个参数传递,即
./run.sh ../config/my-custom-config.
When starting a hornetq node you should pass a configuration directory you want to use. It is by default set to following relative (to the run.sh or run.bat starting script)
../config/stand-alone/non-clustered
.You can copy the example and place it anywhere you want, but then you need to run hornetq and passing configuration directory location as a first parameter, i.e.
./run.sh ../config/my-custom-config
.