Artemis ships with an example that mimics your use-case called 'replicated-failback-static'. Does this example work for you? You can run it from the <ARTEMIS_HOME>/examples/features/ha/replicated-failback-static directory using 'mvn verify'.
Justin On Wed, Jul 19, 2017 at 9:56 AM, martk <123mar...@web.de> wrote: > Extract of the master.xml ("check-for-live-server" set to false remains the > same results): > > <ha-policy> > <replication> > <master> > <check-for-live-server>true</check-for-live-server> > </master> > </replication> > </ha-policy> > > <connectors> > <connector > name="netty-connector">tcp://192.168.0.10:61600</connector> > <connector > name="netty-backup-connector-slave">tcp://192.168.0.11:61600</connector> > </connectors> > > <acceptors> > <acceptor name="netty-acceptor">tcp://0.0.0.0:61600</acceptor> > </acceptors> > > <cluster-connections> > <cluster-connection name="cluster"> > <connector-ref>netty-connector</connector-ref> > <retry-interval>500</retry-interval> > <use-duplicate-detection>true</use-duplicate-detection> > <static-connectors allow-direct-connections-only="true"> > <connector-ref>netty-backup-connector-slave</connector-ref> > </static-connectors> > </cluster-connection> > </cluster-connections> > > > Extract of the slave.xml > > <ha-policy> > <replication> > <slave> > <allow-failback>false</allow-failback> > </slave> > </replication> > </ha-policy> > > <connectors> > <connector > name="netty-live-connector">tcp://192.168.0.10:61600</connector> > <connector > name="netty-connector">tcp://192.168.0.11:61600</connector> > </connectors> > > <acceptors> > <acceptor name="netty-acceptor">tcp://0.0.0.0:61600</acceptor> > </acceptors> > > <cluster-connections> > <cluster-connection name="cluster"> > <connector-ref>netty-connector</connector-ref> > <retry-interval>500</retry-interval> > <use-duplicate-detection>true</use-duplicate-detection> > <static-connectors allow-direct-connections-only="true"> > <connector-ref>netty-live-connector</connector-ref> > </static-connectors> > </cluster-connection> > </cluster-connections> > > > > > -- > View this message in context: http://activemq.2283324.n4. > nabble.com/Artemis-master-slave-startup-results-in-two- > live-broker-tp4728676p4728679.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >