我已经设置了一个包含两个节点的集群。在一个节点上生成的消息始终由单个节点使用(生成消息的节点)。我希望消息在所有节点中使用。
我在两个节点上都有一个目的地(主题)。 因此,任何引发的消息都应该由两个节点使用。
我不确定配置方式是否存在任何配置问题,
<broker
xmlns="http://activemq.apache.org/schema/core"
useJmx="true"
brokerName="mybrokerA"
useShutdownHook="false"
persistent="true"
start="false"
schedulerSupport="true"
enableStatistics="false"
offlineDurableSubscriberTimeout="259200000"
offlineDurableSubscriberTaskSchedule="3600000">
<destinations>
<topic name="FooTopic" physicalName="FooTopic"/>
</destinations>
<networkConnectors>
<networkConnector name="dd" uri="static:(tcp://10.96.10.66:61816,tcp://10.96.10.25:61816)" duplex="true">
<staticallyIncludedDestinations>
<topic physicalName="FooTopic"/>
</staticallyIncludedDestinations>
</networkConnector>
</networkConnectors>
<transportConnectors>
<transportConnector name="default" uri="tcp://10.96.10.66:61816"/>
</transportConnectors>
</broker>
同样是node2中的文件,在传输连接器中更改了ip。
tomee文件。
ServerUrl = tcp://10.96.10.66:61816 DataSource jdbc / teamsdb BrokerXmlConfig = xbean:file:../ conf / activemq.xml
任何人都可以帮助我。 ?