17.9.2. 配置 HornetQ 服务器的复制
要配置在线和备份服务器为复制配对,请配置两者的
hornetq-configuration.xml 文件为:
<shared-store>false</shared-store>
.
.
.
<cluster-connections>
<cluster-connection name="my-cluster">
...
</cluster-connection>
</cluster-connections>
备份服务器也必须显性地标记。
<backup>true</backup>
<connectors>
<connector name="nameOfConfiguredLiveServerConnector">
<factory-class>
org.hornetq.core.remoting.impl.netty.NettyConnectorFactory
</factory-class>
<param key="port" value="5445"/>
</connector>
<!-- a real configuration could have more connectors here -->
<connectors>